Function at 0x410fad
Capabilities:
Query environment variable

Disassembly:
push ebp
sub esp, 0x82c
lea ebp, [esp - 4]
mov eax, dword [0x57b750]
xor eax, ebp
mov dword [ebp + 0x82c], eax
push 0xc
mov eax, 0x4d7eea
call fcn.004becb0
mov esi, ecx
and dword [ebp - 4], 0
lea ebx, [ebp + 0x838]
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
lea eax, [ebp + 0x838]
push eax
mov ecx, esi
call fcn.0040257e
xor edi, edi
jmp 0x41100e
movzx eax, word [eax]
cmp ax, 0x22
jne 0x41101f
push edi
xor eax, eax
push esi
inc eax
call fcn.00406c5a
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jge 0x410ffb
push 0x80070057
call fcn.004028d7
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp eax, edi
je 0x411246
lea ecx, [eax - 1]
mov eax, esi
call fcn.00402afd
cmp ax, 0x22
jne 0x41104c
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
dec eax
push eax
xor eax, eax
push esi
inc eax
call fcn.00406c5a
push 0x52758c
xor ecx, ecx
call fcn.004072a5
mov ecx, eax
cmp ecx, 0xffffffff
je 0x41106f
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
inc eax
push ecx
inc eax
push esi
call fcn.00406c5a
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x527594
call fcn.004024df
mov ecx, esi
call fcn.00411279
cmp eax, edi
jne 0x4110bc
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str..dll
call fcn.004024df
mov ecx, esi
call fcn.00411279
cmp eax, edi
jne 0x4110bc
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str..ocx
call fcn.004024df
mov ecx, esi
call fcn.00411279
push 0x5275b8
xor ecx, ecx
call fcn.004072a5
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4110dd
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
push ecx
sub eax, ecx
push esi
call fcn.00406c5a
push 0x527118
xor ecx, ecx
call fcn.004072a5
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4111aa
mov edi, esi
call fcn.00415c5a
push eax
lea ecx, [ebp - 0x14]
call fcn.0040228a
mov ebx, 0x82c
push ebx
lea eax, [ebp]
push 0
push eax
call fcn.004be850
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x41112a
push dword [ebp - 0x14]
lea eax, [ebp]
call fcn.00410984
lea eax, [ebp + 0x41a]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004024df
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00415c5a
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 1
jle 0x411181
push eax
xor ecx, ecx
call fcn.004072a5
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jle 0x41116f
push 0x527118
mov ecx, eax
call fcn.004072a5
jmp 0x411181
test ecx, ecx
jl 0x411181
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
push ecx
sub eax, ecx
push esi
call fcn.00406c5a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004027b0
push ebx
lea eax, [ebp]
push 0
push eax
call fcn.004be850
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004027b0
push 0x525554
xor ecx, ecx
call fcn.004072a5
mov edi, eax
cmp edi, 0xffffffff
je 0x4111ee
push 0x526790
xor ecx, ecx
call fcn.004072a5
cmp eax, 0xffffffff
je 0x4111d2
cmp eax, edi
jle 0x4111ee
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
push edi
sub eax, edi
push esi
call fcn.00406c5a
mov ebx, esi
call fcn.0040f5c6
mov ebx, eax
call fcn.0040f613
push esi
lea ecx, [ebp + 0x838]
call fcn.0040257e
push 0
push 0x25
lea ecx, [ebp + 0x838]
call fcn.00415c06
cmp eax, 0xffffffff
je 0x411246
inc eax
push eax
push 0x25
lea ecx, [ebp + 0x838]
call fcn.00415c06
cmp eax, 0xffffffff
je 0x411246
mov edi, 0x800
push edi
mov ecx, esi
call fcn.004028ad
push edi
push eax
push dword [ebp + 0x838]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004160af
mov ecx, dword [ebp + 0x838]
add ecx, 0xfffffff0
call fcn.004027b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x82c]
xor ecx, ebp
call fcn.004b96ff
add ebp, 0x830
leave
ret 4