Function at 0x1003963e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003981a
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.10012a38
cmp dword [eax], 0
je 0x10039731
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x100396cb
mov dword [ebp - 0xc], 1
jmp 0x100396cf
and dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x7b187b35
jge 0x100396e1
mov dword [ebp - 0x10], 1
jmp 0x100396e5
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
cmp ecx, 0xfffffff6
jne 0x100396fb
mov dword [ebp - 0x14], 1
jmp 0x100396ff
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0xfffffffc
jle 0x1003970e
mov dword [ebp - 0x1c], 1
jmp 0x10039712
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x10039731
mov dword [ebp - 0x24], 1
jmp 0x10039735
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.10012a38
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
jge 0x10039752
mov dword [ebp - 0x28], 1
jmp 0x10039756
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 4]
call fcn.10012a38
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
jl 0x10039773
mov dword [ebp - 0x2c], 1
jmp 0x10039777
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0x88ff7673
jae 0x10039789
mov dword [ebp - 0x30], 1
jmp 0x1003978d
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
add eax, dword [ebp - 0x30]
cmp eax, 0x2d6273d5
jle 0x100397a5
mov dword [ebp - 0x38], 1
jmp 0x100397a9
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
cmp dword [ebp - 0x38], eax
jl 0x100397bc
mov dword [ebp - 0x3c], 1
jmp 0x100397c0
and dword [ebp - 0x3c], 0
push 1
mov ecx, dword [ebp - 4]
call fcn.10012a38
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax]
jle 0x100397da
mov dword [ebp - 0x40], 1
jmp 0x100397de
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0xfffffffd
jbe 0x100397fb
push 1
mov ecx, dword [ebp - 4]
call fcn.10012a38
cmp dword [eax], 0
jne 0x100397fb
mov eax, dword [ebp - 0x44]
cmp dword [eax], 0
je 0x1003980c
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1003980c
mov dword [ebp - 0x48], 1
jmp 0x10039810
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
jmp 0x1003983f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1003983f
push 0x3f6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret