Function at 0x47c7b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [0x597d2c]
xorps xmm0, xmm0
push esi
push edi
xor edi, edi
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x14], edi
test ebp, ebp
jne 0x47c7e5
mov dword [0x597d2c], 0x589064
mov ebp, 0x589064
mov esi, dword [ebp]
mov eax, str.inside
mov ecx, esi
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47c810
test dl, dl
je 0x47c80c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47c810
add eax, 2
add ecx, 2
test dl, dl
jne 0x47c7f0
xor eax, eax
jmp 0x47c815
sbb eax, eax
or eax, 1
test eax, eax
je 0x47c84c
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp + 4], eax
test eax, eax
je 0x47c837
push str.GetFuncTable
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x47c84f
mov edx, dword [esp + 0x14]
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x47c7e5
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 4]
call eax
mov dword [ebp + 8], eax
test eax, eax
je 0x47c837
mov eax, dword [eax + 0xc]
call eax
cmp eax, 2
jne 0x47c91c
cmp dword [0x597d34], 0
jne 0x47c90f
call fcn.0049ed20
mov ebx, eax
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x47c880
sub esi, ecx
test ebx, ebx
je 0x47c90f
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c896
sub ecx, edx
lea eax, [ecx + 0x100]
push eax
call fcn.00473980
mov edi, eax
add esp, 4
test edi, edi
je 0x47c906
lea eax, [esi + 0x100]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c8c8
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00473980
mov edx, eax
add esp, 4
mov dword [0x597d34], edx
test edx, edx
je 0x47c906
mov ecx, edi
sub edx, edi
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x47c8f0
push edi
call fcn.004738c0
add esp, 4
push ebx
call fcn.004d58e0
add esp, 4
mov eax, dword [0x597d34]
lea edi, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
call eax
cmp eax, 3
jne 0x47c9e3
cmp dword [0x597d38], 0
jne 0x47c9d6
call fcn.0049ed50
mov ebx, eax
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x47c946
sub esi, ecx
test ebx, ebx
je 0x47c9d6
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c960
sub ecx, edx
lea eax, [ecx + 0x100]
push eax
call fcn.00473980
mov edi, eax
add esp, 4
test edi, edi
je 0x47c9cd
lea eax, [esi + 0x100]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47c992
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00473980
mov edx, eax
add esp, 4
mov dword [0x597d38], edx
test edx, edx
je 0x47c9cd
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x47c9b7
push edi
call fcn.004738c0
add esp, 4
push ebx
call fcn.004d58e0
add esp, 4
mov eax, dword [0x597d38]
lea edi, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push edi
push 0x589078
mov eax, dword [eax]
call eax
add esp, 8
test eax, eax
jne 0x47c837
mov edx, 1
mov dword [ebp + 0x10], 1
mov dword [esp + 0x14], edx
jmp 0x47c83b