Function at 0x10045c24
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x10045d14
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x7c]
movzx eax, byte [eax]
test eax, eax
je 0x10045cb5
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0xbc]
call fcn.1002f5f1
pop ecx
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x64]
push dword [eax]
push dword [ebp - 0xc4]
call fcn.100458cd
pop ecx
pop ecx
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
jmp 0x10046145
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x10045cef
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 0x10045d0f
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0xe0]
call fcn.10022db7
mov dword [eax], 1
jmp 0x10045ce4
jmp 0x10046145
mov dword [ebp - 0x3c], 0x4407
mov dword [ebp - 0xc0], 0x1000c1b8
cmp dword [ebp - 0x3c], 0x4610
jle 0x10045dd7
and dword [ebp - 0x30], 0
jmp 0x10045d3f
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2501
jge 0x10045dd7
and dword [ebp - 0x38], 0
jmp 0x10045d59
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x1742
jge 0x10045dd2
and dword [ebp - 0x1c], 0
jmp 0x10045d6f
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x7d20
jge 0x10045dd0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
shl eax, cl
mov ecx, dword [ebp - 0x1c]
shl eax, cl
cdq
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], edx
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
lea ecx, [ebp - 0x138]
call fcn.100128ee
pop ecx
pop ecx
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
call fcn.100229df
push eax
call fcn.10074e83
pop ecx
lea ecx, [ebp - 0x138]
call fcn.100229d5
jmp 0x10045d68
jmp 0x10045d52
jmp 0x10045d38
mov dword [ebp - 0xec], 0x1008f648
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xf0], 0x1008f62c
cmp dword [ebp - 0x3c], 0x41e3
jge 0x10045e06
push dword [ebp - 0xc0]
call fcn.10074e83
pop ecx
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x44], 0x5f95
mov dword [ebp - 0xd4], 0x1000c1f8
cmp dword [ebp - 0x44], 0x6091
jle 0x10045eb5
and dword [ebp - 0x34], 0
jmp 0x10045e40
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x6cd6
jge 0x10045eb5
and dword [ebp - 0x24], 0
jmp 0x10045e56
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x5d08
jge 0x10045eb3
mov eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0x24]
mov eax, edx
cdq
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], edx
push dword [ebp - 0xd8]
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x108]
call fcn.100128ee
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.100229df
push eax
call fcn.10074e83
pop ecx
lea ecx, [ebp - 0x108]
call fcn.100229d5
jmp 0x10045e4f
jmp 0x10045e39
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0x44], 0x5bc5
jge 0x10045ed3
push dword [ebp - 0xd4]
call fcn.10074e83
pop ecx
lea eax, [ebp + 0x28]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
movzx eax, byte [eax]
test eax, eax
je 0x10045f45
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10045f23
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x10045f40
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x58]
call fcn.10022db7
mov dword [eax], 0x2b57e8b7
jmp 0x10045f18
jmp 0x10046145
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x40], 0x36f
mov dword [ebp - 0x80], 0x1000c22c
cmp dword [ebp - 0x40], 0x393
jle 0x10045fe7
and dword [ebp - 0x10], 0
jmp 0x10045f78
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x7914
jge 0x10045fe7
and dword [ebp - 0x2c], 0
jmp 0x10045f8e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6f45
jge 0x10045fe5
mov eax, dword [ebp - 0x10]
cdq
idiv dword [ebp - 0x2c]
mov eax, edx
cdq
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xe4], edx
push dword [ebp - 0xe4]
push dword [ebp - 0xe8]
lea ecx, [ebp - 0x120]
call fcn.100128ee
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.100229df
push eax
call fcn.10074e83
pop ecx
lea ecx, [ebp - 0x120]
call fcn.100229d5
jmp 0x10045f87
jmp 0x10045f71
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x40], 0x18b
jge 0x10045fff
push dword [ebp - 0x80]
call fcn.10074e83
pop ecx
mov dword [ebp - 0x48], 0x3091
mov dword [ebp - 0x98], 0x1000c260
cmp dword [ebp - 0x48], 0x33a1
jle 0x100460ee
and dword [ebp - 0x14], 0
jmp 0x1004602a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x7d53
jge 0x100460e8
and dword [ebp - 0x18], 0
jmp 0x10046044
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3ece
jge 0x100460e3
and dword [ebp - 0x20], 0
jmp 0x1004605e
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x26b7
jge 0x100460de
and dword [ebp - 0x28], 0
jmp 0x10046074
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xb5e
jge 0x100460d9
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
shl edx, cl
xor edx, dword [ebp - 0x28]
mov eax, edx
cdq
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x150]
call fcn.100128ee
pop ecx
pop ecx
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
call fcn.100229df
push eax
call fcn.10074e83
pop ecx
lea ecx, [ebp - 0x150]
call fcn.100229d5
jmp 0x1004606d
jmp 0x10046057
jmp 0x1004603d
jmp 0x10046023
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0x48], 0x2e36
jge 0x1004610f
push dword [ebp - 0x98]
call fcn.10074e83
pop ecx
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x10046125
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jge 0x10046145
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0xa0]
call fcn.10022db7
mov dword [eax], 0x1713
jmp 0x1004611a
mov esp, ebp
pop ebp
ret