Function at 0x10076e79
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x100770e1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x4681
mov dword [ebp - 0x34], 0x1000f614
cmp dword [ebp - 0x24], 0x4758
jle 0x10076f33
and dword [ebp - 0x20], 0
jmp 0x10076eca
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xd8d
jge 0x10076f33
and dword [ebp - 0x14], 0
jmp 0x10076ee0
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x514e
jge 0x10076f31
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea ecx, [ebp - 0xa0]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xa0]
call fcn.100252df
jmp 0x10076ed9
jmp 0x10076ec3
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x24], 0x45bc
jge 0x10076f4b
push dword [ebp - 0x34]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10077097
mov dword [ebp - 0x28], 0x6ba7
mov dword [ebp - 0x44], 0x1000f638
cmp dword [ebp - 0x28], 0x6c4c
jle 0x10077038
and dword [ebp - 0xc], 0
jmp 0x10076f81
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x6ea8
jge 0x10077038
and dword [ebp - 0x1c], 0
jmp 0x10076f9b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x748c
jge 0x10077033
and dword [ebp - 0x10], 0
jmp 0x10076fb5
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x55b6
jge 0x1007702e
and dword [ebp - 0x18], 0
jmp 0x10076fcb
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x564
jge 0x1007702c
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
sar edx, cl
mov ecx, dword [ebp - 0x18]
shl edx, cl
mov eax, edx
cdq
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
lea ecx, [ebp - 0xb8]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xb8]
call fcn.100252df
jmp 0x10076fc4
jmp 0x10076fae
jmp 0x10076f94
jmp 0x10076f7a
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x28], 0x6b47
jge 0x10077050
push dword [ebp - 0x44]
call fcn.1008287d
pop ecx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10077078
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], 2
jge 0x10077095
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10025597
mov dword [eax], 1
jmp 0x1007706d
jmp 0x100770df
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100770c5
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], 1
jge 0x100770df
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.10025597
or dword [eax], 0xffffffff
jmp 0x100770ba
jmp 0x1007710c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x84], 0x100952ac
push 0x90d
push dword [ebp - 0x48]
push dword [ebp - 0x50]
push 0
call fcn.10069772
add esp, 0x10
mov esp, ebp
pop ebp
ret