Function at 0x10045a23
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007322f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10045d5a
lea eax, [ebp + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10045b51
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 1
je 0x10045ae2
mov dword [ebp - 0x40], 1
jmp 0x10045ae6
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
add eax, dword [ebp - 0x40]
cmp eax, 0xe76d
jl 0x10045afe
mov dword [ebp - 0x34], 1
jmp 0x10045b02
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
cmp dword [ebp - 0x34], 0
je 0x10045b24
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x10045b24
mov dword [ebp - 0x38], 1
jmp 0x10045b28
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jg 0x10045b3b
mov dword [ebp - 0x3c], 1
jmp 0x10045b3f
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
add eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x10045d58
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x74], eax
push 2
lea ecx, [ebp - 0xa8]
call fcn.10021783
and dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x5c8094a
push 0
push 0x2279
lea eax, [ebp - 0x9c]
push eax
push 0x3f0f
lea eax, [ebp - 0xa8]
push eax
call fcn.100463ee
add esp, 0x14
mov dword [ebp - 0x20], 0
jmp 0x10045ba7
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jg 0x10045d2f
mov dword [ebp - 0x18], 0xafd94fe5
mov dword [ebp - 0x44], 0x2c1e
mov dword [ebp - 0x64], 0x10008890
cmp dword [ebp - 0x44], 0x2d47
jle 0x10045c7a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
and dword [ebp - 0x24], 0
jmp 0x10045bec
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x13fe
jge 0x10045c7a
and dword [ebp - 0x30], 0
jmp 0x10045c06
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x7f37
jge 0x10045c75
and dword [ebp - 0x2c], 0
jmp 0x10045c1c
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x53dc
jge 0x10045c73
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], edx
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
lea ecx, [ebp - 0xd0]
call fcn.1000a4b3
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.10021246
push eax
call fcn.10059c65
pop ecx
lea ecx, [ebp - 0xd0]
call fcn.1002123c
jmp 0x10045c15
jmp 0x10045bff
jmp 0x10045be5
mov dword [ebp - 0x18], 1
jmp 0x10045c8a
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x10045cee
mov dword [ebp - 0x1c], 0
jmp 0x10045ca0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 4
jge 0x10045cb6
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xb8], 3
jmp 0x10045c99
push 4
pop eax
imul eax, eax, 3
mov dword [ebp + eax - 0xb8], 0xfffffffb
mov byte [ebp - 0x11], 0
push 0x3cf7
push 0x4207
push 0
push 0
lea eax, [ebp - 0x11]
push eax
push 0x5be6
push 1
call fcn.10043fb9
add esp, 0x1c
jmp 0x10045c83
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 0x299a
jge 0x10045d04
push dword [ebp - 0x64]
call fcn.10059c65
pop ecx
jmp 0x10045d20
and dword [ebp - 4], 0
jmp 0x10045d2a
jmp 0x10045ba0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10021805
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
sub eax, 0x17
cdq
mov ecx, 0x313
idiv ecx
sub eax, 0x17
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
jmp 0x10045d72
jmp 0x10045d72
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
push 0x3f0
push 0
push dword [ebp - 0x7c]
call fcn.1004aa92
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret