Function at 0x56a440
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x59e9f8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5ee034]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 0x25c]
mov dword [ebp - 0x10], eax
call fcn.00404690
mov esi, eax
cmp dword [esi + 0x10], 0
jne 0x56a49a
xor al, al
jmp 0x56a68a
lea ecx, [ebp + 0x30]
call fcn.00404580
mov dword [ebp - 4], 0
mov eax, esi
mov edx, dword [esi + 0x14]
cmp edx, 8
jb 0x56a4b5
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x56a4e8
mov eax, dword [esi + 0x10]
lea ecx, [ebp + 0x18]
dec eax
mov edx, ebx
push eax
call fcn.0044d960
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.00406310
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.00404570
jmp 0x56a50b
mov ecx, ebx
call fcn.00404690
lea ecx, [ebp + 0x30]
cmp ecx, eax
je 0x56a50b
mov eax, esi
cmp edx, 8
jb 0x56a4ff
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.00404780
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp + 0x30]
push 0x104
push eax
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
cmp ebx, 0x104
jb 0x56a588
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057de0f
add esp, 4
lea ecx, [ebp + 0x30]
mov esi, eax
push ebx
push esi
call fcn.00404530
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
call fcn.00404a30
push eax
push esi
lea ecx, [ebp + 0x30]
call fcn.00404780
push esi
call fcn.0057d777
add esp, 4
jmp 0x56a59d
lea ecx, [ebp + 0x48]
call fcn.00404a30
push eax
lea eax, [ebp + 0x48]
push eax
lea ecx, [ebp + 0x30]
call fcn.00404780
push 0x5c4560
lea ecx, [ebp]
call fcn.00406350
mov byte [ebp - 4], 2
lea eax, [ebp]
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.00448900
mov esi, eax
cmp esi, 0xffffffff
je 0x56a640
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.0044d8f0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, edi
push eax
call fcn.00406310
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00404570
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x56a63c
lea ecx, [ebp + 0x30]
call fcn.00404690
lea ecx, [ebp]
mov edx, dword [eax + 0x10]
call fcn.00404690
lea ecx, [ebp + 0x18]
mov eax, dword [eax + 0x10]
sub edx, eax
sub edx, esi
push edx
lea edx, [ebp + 0x30]
call fcn.0044d960
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x18]
call fcn.00404530
xor edx, edx
mov ecx, eax
call fcn.0044d2f0
mov dword [edi], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00404570
mov bl, 1
jmp 0x56a66d
lea ecx, [ebp + 0x30]
call fcn.00404690
cmp edi, eax
je 0x56a666
call fcn.00404690
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x56a65b
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.00404780
cmp dword [ebp - 0x10], 0
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.00404570
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0057d0c6
lea esp, [ebp + 0x254]
pop ebp
ret