Function at 0x100577f3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10057830
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
push 0x79fe
push 1
push dword [ebp - 0x58]
push dword [ebp - 0xa4]
call fcn.10057c7f
add esp, 0x10
jmp 0x10057c7b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x10057c64
mov dword [ebp - 0x38], 0x3e85
mov dword [ebp - 0x68], 0x1000bfc0
cmp dword [ebp - 0x38], 0x3fc7
jle 0x10057940
and dword [ebp - 0x14], 0
jmp 0x10057872
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x6878
jge 0x10057940
and dword [ebp - 0xc], 0
jmp 0x1005788c
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2859
jge 0x1005793b
and dword [ebp - 0x2c], 0
jmp 0x100578a6
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x60bc
jge 0x10057936
and dword [ebp - 0x34], 0
jmp 0x100578c0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x52ae
jge 0x10057931
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov ecx, edx
sar eax, cl
and eax, dword [ebp - 0x34]
cdq
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov dword [ebp - 0xb0], eax
push dword [ebp - 0x90]
push dword [ebp - 0x94]
lea ecx, [ebp - 0xec]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0xec]
call fcn.100252df
jmp 0x100578b9
jmp 0x1005789f
jmp 0x10057885
jmp 0x1005786b
cmp dword [ebp - 0x38], 0x3bec
jge 0x10057952
push dword [ebp - 0x68]
call fcn.1008287d
pop ecx
mov dword [ebp - 0xd4], 4
mov dword [ebp - 0x3c], 0x303c
mov dword [ebp - 0x4c], 0x1000c010
cmp dword [ebp - 0x3c], 0x31fc
jle 0x10057a05
and dword [ebp - 0x1c], 0
jmp 0x10057984
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x1e38
jge 0x10057a05
and dword [ebp - 0x30], 0
jmp 0x1005799a
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x331c
jge 0x10057a00
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
sar eax, cl
cdq
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x70], ax
push dword [ebp - 0x9c]
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x11c]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0x98]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x11c]
call fcn.100252df
jmp 0x10057993
jmp 0x1005797d
mov dword [ebp - 0xb4], 0xebaeef20
cmp dword [ebp - 0x3c], 0x2f4a
jge 0x10057a21
push dword [ebp - 0x4c]
call fcn.1008287d
pop ecx
mov dword [ebp - 0x64], 0x45f1dbec
mov dword [ebp - 0x40], 0x67d8
mov dword [ebp - 0x50], 0x1000c030
cmp dword [ebp - 0x40], 0x689c
jle 0x10057ad3
and dword [ebp - 0x24], 0
jmp 0x10057a50
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1a6b
jge 0x10057ad3
and dword [ebp - 4], 0
jmp 0x10057a66
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x5f32
jge 0x10057ace
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 4]
cdq
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], edx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [ebp - 0x88], ax
push dword [ebp - 0xa8]
push dword [ebp - 0xac]
lea ecx, [ebp - 0x104]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x104]
call fcn.100252df
jmp 0x10057a5f
jmp 0x10057a49
mov dword [ebp - 0xbc], 0xc0d37ad4
cmp dword [ebp - 0x40], 0x671c
jge 0x10057aef
push dword [ebp - 0x50]
call fcn.1008287d
pop ecx
mov dword [ebp - 0xc4], 1
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xd0], 0x909b7928
mov dword [ebp - 0xc0], 0xed8f
mov dword [ebp - 0x54], 0x1bb3
mov dword [ebp - 8], 0
jmp 0x10057b2e
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
jge 0x10057b44
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0xcc], 0xa4d63a88
jmp 0x10057b27
push 0
push 0x4f2e
lea eax, [ebp - 0x54]
push eax
push 0x130
push 0
call fcn.100577f3
add esp, 0x14
mov dword [ebp - 0x48], 0x664d
mov dword [ebp - 0x6c], 0x1000c080
cmp dword [ebp - 0x48], 0x67d7
jle 0x10057c38
and dword [ebp - 0x20], 0
jmp 0x10057b86
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x15ab
jge 0x10057c38
and dword [ebp - 0x10], 0
jmp 0x10057ba0
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x71b9
jge 0x10057c33
and dword [ebp - 0x18], 0
jmp 0x10057bba
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x79a0
jge 0x10057c2e
and dword [ebp - 0x28], 0
jmp 0x10057bd0
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3124
jge 0x10057c2c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
shl eax, cl
and eax, dword [ebp - 0x20]
xor eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc8], eax
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x134]
call fcn.1001147b
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.100252e9
push eax
call fcn.1008287d
pop ecx
lea ecx, [ebp - 0x134]
call fcn.100252df
jmp 0x10057bc9
jmp 0x10057bb3
jmp 0x10057b99
jmp 0x10057b7f
lea eax, [ebp - 0x64]
push eax
push 0
push 0x3724
push 0x5a5e
call fcn.10069448
add esp, 0x10
cmp dword [ebp - 0x48], 0x647c
jge 0x10057c62
push dword [ebp - 0x6c]
call fcn.1008287d
pop ecx
jmp 0x10057c7b
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret