Function at 0x1003de45
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x1003deca
lea eax, [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x1003debd
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1003de9e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x1003debb
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.10011fc8
mov dword [eax], 1
jmp 0x1003de93
jmp 0x1003dec5
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1003e04f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1003e00b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003e009
mov dword [ebp - 0x3c], 0x2329
cmp dword [ebp - 0x3c], 0x60e
jge 0x1003e003
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x106636b0
call fcn.100117e1
mov ecx, eax
call fcn.100117e1
mov ecx, eax
call fcn.100117e1
mov ecx, eax
call fcn.100117e1
and dword [ebp - 0x10], 0
jmp 0x1003df50
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x1b
jge 0x1003df77
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x40]
add eax, dword [ebp - 0x44]
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x78]
push eax
mov ecx, 0x10f6af98
call fcn.1003ee8f
jmp 0x1003df49
and dword [ebp - 0xc], 0
jmp 0x1003df84
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1b
jge 0x1003dfeb
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, 0x10f6af98
call fcn.10012018
push dword [eax]
lea eax, [ebp - 0x70]
push eax
mov ecx, 0x10f6af98
call fcn.1001200a
push dword [eax]
lea ecx, [ebp - 0x48]
call fcn.10040060
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x1003dfe9
push fcn.100165df
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push eax
mov ecx, 0x106635f8
call fcn.1003e7ba
mov ecx, eax
call fcn.10011bfa
jmp 0x1003df7d
push fcn.100165df
push 0xffffffffffffffff
mov ecx, 0x106635f8
call fcn.1003e7ba
mov ecx, eax
call fcn.10011bfa
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
jmp 0x1003e04f
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10011fc8
mov esi, eax
mov eax, dword [ebp - 0x68]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.10011fc8
mov ecx, dword [esi]
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret