Function at 0x10018ba4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10018f92
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd0], eax
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x90]
movzx eax, byte [eax]
test eax, eax
je 0x10018ce2
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x5c], 0x12c
mov dword [ebp - 0xc8], 0x10006e00
cmp dword [ebp - 0x5c], 0x506
jle 0x10018caa
and dword [ebp - 0x2c], 0
jmp 0x10018c28
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x387b
jge 0x10018caa
and dword [ebp - 0x30], 0
jmp 0x10018c3e
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3a96
jge 0x10018ca5
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x10c], eax
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x12c]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x12c]
call fcn.100252df
jmp 0x10018c37
jmp 0x10018c21
mov eax, dword [ebp - 0x78]
movzx eax, byte [eax]
test eax, eax
je 0x10018cc8
push 0x60b3
push 0xc97
push 0
call fcn.1001c5cf
add esp, 0xc
cmp dword [ebp - 0x5c], 0xfffffe8e
jge 0x10018cdd
push dword [ebp - 0xc8]
call fcn.1008287d
pop ecx
jmp 0x10018f8d
mov dword [ebp - 0x54], 0x4ad3
mov dword [ebp - 0x88], 0x10006e48
cmp dword [ebp - 0x54], 0x4b09
jle 0x10018dd0
and dword [ebp - 0x20], 0
jmp 0x10018d0d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x6e5
jge 0x10018dd0
and dword [ebp - 0x18], 0
jmp 0x10018d27
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xf51
jge 0x10018dcb
and dword [ebp - 0x28], 0
jmp 0x10018d41
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4076
jge 0x10018dc6
and dword [ebp - 0x10], 0
jmp 0x10018d57
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x637b
jge 0x10018dc1
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
sar eax, cl
mov ecx, dword [ebp - 0x10]
shl eax, cl
cdq
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x114], eax
push dword [ebp - 0x104]
push dword [ebp - 0x108]
lea ecx, [ebp - 0x144]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x144]
call fcn.100252df
jmp 0x10018d50
jmp 0x10018d3a
jmp 0x10018d20
jmp 0x10018d06
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x54], 0x4935
jge 0x10018dee
push dword [ebp - 0x88]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10018e22
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jg 0x10018f8d
mov dword [ebp - 4], 0x6d7be7e5
mov dword [ebp - 4], 0
jmp 0x10018e45
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x10018f88
push dword [ebp - 0x98]
push 0xa77
push 1
push 1
lea eax, [ebp - 4]
push eax
push 0x4ea4
push 0x1991
call fcn.100185c7
add esp, 0x1c
mov dword [ebp - 0x4c], 0xb81
mov dword [ebp - 0xa0], 0x10006e90
cmp dword [ebp - 0x4c], 0xdb0
jle 0x10018f6e
and dword [ebp - 0x34], 0
jmp 0x10018e9f
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x1c87
jge 0x10018f6e
and dword [ebp - 0x1c], 0
jmp 0x10018eb9
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4d8a
jge 0x10018f69
and dword [ebp - 0x24], 0
jmp 0x10018ed3
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x4c5a
jge 0x10018f64
and dword [ebp - 0xc], 0
jmp 0x10018eed
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x604f
jge 0x10018f5f
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x24]
imul edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
mov ecx, edx
sar eax, cl
cdq
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x110], eax
push dword [ebp - 0xd8]
push dword [ebp - 0xdc]
lea ecx, [ebp - 0x15c]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.100252df
jmp 0x10018ee6
jmp 0x10018ecc
jmp 0x10018eb2
jmp 0x10018e98
cmp dword [ebp - 0x4c], 0xb32
jge 0x10018f83
push dword [ebp - 0xa0]
call fcn.1008287d
pop ecx
jmp 0x10018e3e
jmp 0x10018e17
jmp 0x10019193
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xec], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x100]
movzx eax, byte [eax]
test eax, eax
je 0x1001902c
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xf4], eax
push 0
call fcn.10023c62
pop ecx
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
sub eax, 0x16
cdq
mov ecx, 0x254
idiv ecx
sub eax, 0x16
mov ecx, dword [ebp - 0xf4]
mov dword [ecx], eax
jmp 0x10019193
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x10019121
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x100190c7
mov dword [ebp - 0x40], 1
jmp 0x100190cb
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jg 0x100190e4
mov eax, 0x4f5ac3d6
test eax, eax
jne 0x100190e4
and dword [ebp - 0x44], 0
jmp 0x100190eb
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jle 0x10019109
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x10019109
mov dword [ebp - 0x48], 1
jmp 0x1001910d
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xc8f0d071
je 0x10019121
or eax, 0xffffffff
jne 0x10019121
and dword [ebp - 0x50], 0
jmp 0x10019128
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x50]
jg 0x10019141
mov eax, 0x7dd
test eax, eax
jne 0x10019141
and dword [ebp - 0x58], 0
jmp 0x10019148
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
push 2
mov ecx, dword [ebp - 0xbc]
call fcn.10025597
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
imul eax, dword [ebp - 0x58]
cmp dword [ebp - 0x3c], eax
jl 0x10019184
mov dword [ebp - 0x60], 1
jmp 0x10019188
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret