Function at 0x10047584
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100475c7
lea eax, [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x100475b6
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100475b4
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x100475c2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x100477a4
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10047616
mov byte [ebp - 2], 0
push 0x7598
push 0x2bb8
lea eax, [ebp - 2]
push eax
push 0
call fcn.1004dc64
add esp, 0x10
jmp 0x100477a4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc]
imul eax, dword [eax], 0xffffffff
inc eax
jne 0x10047669
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x10047669
and dword [ebp - 0x1c], 0
jmp 0x10047670
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jge 0x10047683
mov dword [ebp - 0x20], 1
jmp 0x10047687
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jl 0x1004769a
mov dword [ebp - 0x24], 1
jmp 0x1004769e
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
add edx, dword [ebp - 0x24]
add ecx, edx
mov edx, dword [ebp - 0xc]
add ecx, dword [edx]
mov edx, dword [ebp - 8]
sub ecx, dword [edx]
cmp dword [eax], ecx
jle 0x100476c7
mov dword [ebp - 0x10], 1
jmp 0x100476cb
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x10], eax
jg 0x100476e6
mov dword [ebp - 0x14], 1
jmp 0x100476ea
and dword [ebp - 0x14], 0
push 2
mov ecx, dword [ebp - 0x18]
call fcn.1000f21a
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [ebp - 0x14], 0
jne 0x10047714
push 0
mov ecx, dword [ebp - 0x18]
call fcn.1000f21a
cmp dword [eax], 0
jne 0x10047714
and dword [ebp - 0x60], 0
jmp 0x1004771b
mov dword [ebp - 0x60], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x10047733
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x10047742
push 1
mov ecx, dword [ebp - 0x18]
call fcn.1000f21a
cmp dword [eax], 0
jne 0x10047747
xor eax, eax
inc eax
je 0x10047758
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x10047758
mov dword [ebp - 0x28], 1
jmp 0x1004775c
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [eax]
mov eax, dword [ebp - 8]
cmp ecx, dword [eax]
jle 0x10047774
mov dword [ebp - 0x2c], 1
jmp 0x10047778
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
add eax, 4
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
je 0x1004778e
mov dword [ebp - 0x64], 1
jmp 0x10047792
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret