Function at 0x47b690
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x706c70
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor bl, bl
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x47b6de
call fcn.0047acc0
push dword [esi + 0x24]
call fcn.006e4d89
add esp, 4
mov dword [esi + 0x24], 0
mov eax, dword fs:[0x2c]
mov bh, byte [esi + 0x28]
test bh, bh
mov ecx, dword [eax]
sete byte [ebp - 0x5d]
mov eax, dword [0x7cd4e4]
cmp eax, dword [ecx + 4]
jg 0x47b945
cmp dword [0x7c29ec], 0
jne 0x47b7d0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
push 0x105
mov ecx, eax
call fcn.00455f60
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x6c]
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
push str._WINDIR_Temp
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x47b77b
mov edx, dword [ebp - 0x6c]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47b760
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x7c29dc
call fcn.00449180
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
je 0x47b7d0
mov eax, dword [ebp - 0x64]
sub eax, ecx
sar eax, 1
lea edx, [eax + eax]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b7b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b99a
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0x7c29dc
lea ecx, [ebp - 0x5c]
call fcn.00449040
mov ecx, str..part1
mov dword [ebp - 4], 1
test bh, bh
lea edx, [esi + 8]
mov eax, str..part2
cmovne eax, ecx
lea ecx, [ebp - 0x44]
push eax
call fcn.00455570
add esp, 4
push eax
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0044a730
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x47b853
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b849
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b99f
push edx
push ecx
call fcn.006d0b31
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp dword [ebp - 0x1c], eax
je 0x47b89d
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push str.wN__ccsUTF_8
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.006e5201
mov edi, eax
add esp, 8
test edi, edi
je 0x47b89d
mov ecx, edi
call fcn.0047a6e0
mov al, byte [ebp - 0x5d]
mov bl, 1
mov dword [esi + 0x24], edi
mov byte [esi + 0x28], al
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x47b8d7
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b8cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b9a4
push edx
push ecx
call fcn.006d0b31
add esp, 8
mov edx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp edx, 8
jb 0x47b925
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47b91b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47b9a9
push edx
push ecx
call fcn.006d0b31
add esp, 8
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 - 0x14]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret 4
push 0x7cd4e4
call fcn.006d1166
add esp, 4
cmp dword [0x7cd4e4], 0xffffffff
jne 0x47b700
xor eax, eax
mov dword [0x7c29ec], 0
push 0x70b9f0
mov dword [0x7c29f0], 7
mov word [0x7c29dc], ax
call fcn.006d0aec
add esp, 4
push 0x7cd4e4
call fcn.006d111c
add esp, 4
jmp 0x47b700
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
call fcn.006d79b8
int3