Function at 0x10060370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
movzx eax, byte [ebp + 0x28]
test eax, eax
je 0x100603c2
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xe0], eax
push 0x208f
push dword [ebp - 0x84]
push 1
push dword [ebp - 0xe0]
push dword [ebp - 0x8c]
call fcn.100609e9
add esp, 0x14
jmp 0x100609e5
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xe8], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x110]
movzx eax, byte [eax]
test eax, eax
je 0x100608a5
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x5c], 0x7c41
mov dword [ebp - 0xb4], 0x1000cc34
cmp dword [ebp - 0x5c], 0x7e28
jle 0x10060518
and dword [ebp - 0x20], 0
jmp 0x10060497
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x58be
jge 0x10060518
and dword [ebp - 0x10], 0
jmp 0x100604ad
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x620f
jge 0x10060513
mov eax, dword [ebp - 0x20]
or eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x128], eax
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
lea ecx, [ebp - 0x150]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x150]
call fcn.100252df
jmp 0x100604a6
jmp 0x10060490
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x5c], 0x7bc2
jge 0x10060539
push dword [ebp - 0xb4]
call fcn.1008287d
pop ecx
mov dword [ebp - 0x4c], 0x3ed6
mov dword [ebp - 0xdc], 0x1000cc60
cmp dword [ebp - 0x4c], 0x40f0
jle 0x100605e8
and dword [ebp - 0x30], 0
jmp 0x10060564
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x642c
jge 0x100605e8
and dword [ebp - 0x18], 0
jmp 0x1006057a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x6239
jge 0x100605e3
mov eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0x18]
mov eax, edx
cdq
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x138], eax
push dword [ebp - 0x114]
push dword [ebp - 0x118]
lea ecx, [ebp - 0x180]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd8]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x180]
call fcn.100252df
jmp 0x10060573
jmp 0x1006055d
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x4c], 0x3e9b
jge 0x10060609
push dword [ebp - 0xdc]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], 0x1cbf
mov dword [ebp - 0x88], 0x1000ccc8
cmp dword [ebp - 0x64], 0x2071
jle 0x100606f0
and dword [ebp - 0x28], 0
jmp 0x1006066d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4f31
jge 0x100606f0
and dword [ebp - 8], 0
jmp 0x10060683
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x8df
jge 0x100606eb
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
sar eax, cl
cdq
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x134], eax
push dword [ebp - 0x120]
push dword [ebp - 0x124]
lea ecx, [ebp - 0x168]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x168]
call fcn.100252df
jmp 0x1006067c
jmp 0x10060666
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x64], 0x1c38
jge 0x1006070b
push dword [ebp - 0x88]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1006076c
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10025597
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
imul eax, dword [ecx]
test eax, eax
je 0x1006076c
mov dword [ebp - 0x54], 1
jmp 0x10060770
and dword [ebp - 0x54], 0
imul eax, dword [ebp - 0x54], 0xd045
cmp eax, 0x1e1c5a3d
jge 0x10060787
mov dword [ebp - 0x74], 1
jmp 0x1006078b
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
cmp dword [ebp - 0x74], eax
jg 0x1006079e
mov dword [ebp - 0x44], 1
jmp 0x100607a2
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x44]
neg ecx
cmp dword [eax], ecx
je 0x100607bc
mov dword [ebp - 0x6c], 1
jmp 0x100607c0
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax]
cmp dword [ebp - 0x6c], eax
jg 0x100607d6
mov dword [ebp - 0x48], 1
jmp 0x100607da
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0x35dd253d
jne 0x100607ec
mov dword [ebp - 0x50], 1
jmp 0x100607f0
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xb0]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
jle 0x10060809
mov dword [ebp - 0xb8], 1
jmp 0x10060810
and dword [ebp - 0xb8], 0
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10025597
push 2
mov ecx, dword [ebp - 0x3c]
call fcn.10025597
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x10060839
mov dword [ebp - 0x38], 1
jmp 0x1006083d
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x38]
jle 0x1006085b
mov dword [ebp - 0xc0], 1
jmp 0x10060862
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x60]
imul eax, dword [ecx]
imul eax, eax, 0x3f07
sub eax, 0x38991f32
imul eax, eax, 6
cmp eax, 0xfffffffb
je 0x10060894
mov dword [ebp - 0x70], 1
jmp 0x10060898
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
jmp 0x100609e5
mov dword [ebp - 0x78], 0x139e
mov dword [ebp - 0xd0], 0x1000cd28
cmp dword [ebp - 0x78], 0x14d3
jle 0x1006099d
and dword [ebp - 0x1c], 0
jmp 0x100608d0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x213d
jge 0x1006099d
and dword [ebp - 0x24], 0
jmp 0x100608ea
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x6215
jge 0x10060998
and dword [ebp - 0x2c], 0
jmp 0x10060904
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x6126
jge 0x10060993
and dword [ebp - 0x34], 0
jmp 0x1006091e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x3b57
jge 0x1006098e
mov eax, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 0x24]
or edx, dword [ebp - 0x2c]
or edx, dword [ebp - 0x34]
mov eax, edx
cdq
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x104], ax
push dword [ebp - 0xf8]
push dword [ebp - 0xfc]
lea ecx, [ebp - 0x198]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x198]
call fcn.100252df
jmp 0x10060917
jmp 0x100608fd
jmp 0x100608e3
jmp 0x100608c9
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100609d0
push 1
push 0x790f
push 1
push 0
push 0x172f
push 0x1a34
push 0x623b
push 0x5d7b
call fcn.10069799
add esp, 0x20
cmp dword [ebp - 0x78], 0x12aa
jge 0x100609e5
push dword [ebp - 0xd0]
call fcn.1008287d
pop ecx
mov esp, ebp
pop ebp
ret