Function at 0x1003c049
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068a4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x1003c0ae
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x1003c095
push 0
push 0xf08
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
jmp 0x1003c0a9
push 0
push 0x120
push 0
push 0x1d97
call dword [sym.imp.GDI32.dll_GetTextExtentPointW]
jmp 0x1003c413
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x8c], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x1003c162
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1003c140
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jge 0x1003c15d
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0xc0]
call fcn.1001b449
or dword [eax], 0xffffffff
jmp 0x1003c135
jmp 0x1003c413
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0x6701
mov dword [ebp - 0x80], 0x1000a978
cmp dword [ebp - 0x44], 0x6a91
jle 0x1003c2ba
and dword [ebp - 0x28], 0
jmp 0x1003c1f9
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x66d1
jge 0x1003c2ab
and dword [ebp - 0x1c], 0
jmp 0x1003c213
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x6a70
jge 0x1003c2a6
and dword [ebp - 0x24], 0
jmp 0x1003c22d
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xa7d
jge 0x1003c2a1
and dword [ebp - 0x20], 0
jmp 0x1003c243
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4f06
jge 0x1003c29f
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
sar eax, cl
xor eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], edx
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
lea ecx, [ebp - 0xe8]
call fcn.1000d8ea
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.1001b15a
push eax
call fcn.10052776
pop ecx
lea ecx, [ebp - 0xe8]
call fcn.1001b150
jmp 0x1003c23c
jmp 0x1003c226
jmp 0x1003c20c
jmp 0x1003c1f2
push 0x335
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x44], 0x6484
jge 0x1003c2d9
push dword [ebp - 0x80]
call fcn.10052776
pop ecx
jmp 0x1003c2f5
or dword [ebp - 4], 0xffffffff
jmp 0x1003c2ff
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x1003c3db
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0xc54c9751
jne 0x1003c33e
mov dword [ebp - 0x3c], 1
jmp 0x1003c342
and dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x1003c351
mov dword [ebp - 0x4c], 1
jmp 0x1003c355
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x4c], eax
jg 0x1003c368
mov dword [ebp - 0x34], 1
jmp 0x1003c36c
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x34]
cmp dword [eax], ecx
je 0x1003c384
mov dword [ebp - 0x38], 1
jmp 0x1003c388
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
sub eax, 4
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx]
jl 0x1003c3c0
mov dword [ebp - 0x30], 1
jmp 0x1003c3c4
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [ebp - 0x30], 0
jne 0x1003c3db
and dword [ebp - 0x2c], 0
jmp 0x1003c3e2
mov dword [ebp - 0x2c], 1
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
imul eax, dword [ebp - 0x2c]
cmp eax, 0xffffffff
jle 0x1003c404
mov dword [ebp - 0x50], 1
jmp 0x1003c408
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0x50]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret