Function at 0x47b450
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x57e4b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x62f018]
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 ebx, edx
mov esi, ecx
mov eax, dword [ebp + 0x25c]
mov ecx, 0x6355a1
mov dword [ebp - 0x14], eax
call fcn.00561ea5
cmp dword [esi + 0x10], 0
lea edi, [esi + 0x10]
jne 0x47b4b0
xor al, al
jmp 0x47b704
lea ecx, [ebp + 0x30]
call fcn.00403f80
mov dword [ebp - 4], 0
mov eax, esi
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x47b4cb
mov eax, dword [esi]
cmp word [eax], 0x40
jne 0x47b50b
mov eax, dword [edi]
lea ecx, [ebp + 0x18]
dec eax
mov edx, esi
push eax
call fcn.0048dab0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x30]
push eax
call fcn.00403e50
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
call fcn.00404570
mov byte [ebp - 4], 0
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0
jmp 0x47b524
lea eax, [ebp + 0x30]
cmp eax, esi
je 0x47b524
cmp ecx, 8
jb 0x47b519
mov esi, dword [esi]
push dword [edi]
lea ecx, [ebp + 0x30]
push esi
call fcn.00404640
push 0x208
lea eax, [ebp + 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp + 0x48]
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
cmovae eax, dword [ebp + 0x30]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
cmp edi, 0x104
jb 0x47b5b4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0052ffb8
add esp, 4
lea ecx, [ebp + 0x30]
cmp dword [ebp + 0x44], 8
mov esi, eax
cmovae ecx, dword [ebp + 0x30]
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b590
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x30]
call fcn.00404640
push esi
call fcn.0052fc78
add esp, 4
jmp 0x47b5dc
lea ecx, [ebp + 0x48]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b5c0
sub ecx, edx
lea eax, [ebp + 0x48]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x30]
call fcn.00404640
push 0x5cb95c
lea ecx, [ebp]
call fcn.00403ed0
mov byte [ebp - 4], 6
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
lea ecx, [ebp + 0x30]
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
cmp dword [ebp + 0x44], 8
mov edx, dword [ebp + 0x40]
cmovae ecx, dword [ebp + 0x30]
push eax
push 0
call fcn.0044c580
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x47b6a8
push esi
lea edx, [ebp + 0x30]
lea ecx, [ebp + 0x18]
call fcn.0048da30
add esp, 4
mov byte [ebp - 4], 7
mov ecx, ebx
push eax
call fcn.00403e50
mov byte [ebp - 4], 8
lea ecx, [ebp + 0x18]
call fcn.00404570
mov byte [ebp - 4], 6
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x47b6a4
mov eax, dword [ebp + 0x40]
lea edx, [ebp + 0x30]
sub eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x18]
sub eax, esi
push eax
call fcn.0048dab0
add esp, 4
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0x18]
cmp dword [ebp + 0x2c], 8
cmovae ecx, dword [ebp + 0x18]
xor edx, edx
call fcn.0048d2a0
mov dword [edi], eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x18]
call fcn.00404570
mov byte [ebp - 4], 6
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 6
mov bl, 1
jmp 0x47b6c9
lea eax, [ebp + 0x30]
cmp ebx, eax
je 0x47b6c2
cmp dword [ebp + 0x44], 8
mov ecx, ebx
push dword [ebp + 0x40]
cmovae eax, dword [ebp + 0x30]
push eax
call fcn.00404640
cmp dword [ebp - 0x14], 0
sete bl
mov byte [ebp - 4], 0x11
lea ecx, [ebp]
call fcn.00404570
mov byte [ebp - 4], 0
lea eax, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0x15
lea ecx, [ebp + 0x30]
call fcn.00404570
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp + 0x30]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
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.0052f553
lea esp, [ebp + 0x254]
pop ebp
ret