Function at 0x471e30
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520572
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x56f790]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x228], esi
test esi, esi
je 0x472138
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0
push 0
push eax
call fcn.004b17e0
add esp, 0xc
lea eax, [ebp - 0x218]
mov ecx, ebx
push 0x104
push eax
call fcn.00472240
test eax, eax
je 0x471ec8
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
push ecx
push ebx
mov dword [ebp - 0x224], 1
call dword [eax + 0x2c]
test eax, eax
je 0x472100
call fcn.00408a30
mov ecx, eax
test ecx, ecx
je 0x4721af
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 0
call fcn.0040ed70
mov ecx, eax
call fcn.0040b120
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004088a0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x22c], esi
or edi, 0xffffffff
mov byte [ebp - 4], 1
cmp dword [esi - 0xc], 0
jl 0x471fe4
push str.bizhi
push esi
call fcn.004b193a
add esp, 8
test eax, eax
je 0x471f4d
sub eax, esi
sar eax, 1
jne 0x471f4d
lea eax, [ebp - 0x21c]
push eax
call fcn.00462c20
add esp, 4
mov byte [ebp - 4], 2
jmp 0x471f82
cmp dword [esi - 0xc], 0
jl 0x471fe4
push str.desktop
push esi
call fcn.004b193a
add esp, 8
test eax, eax
je 0x471fb1
sub eax, esi
sar eax, 1
jne 0x471fb1
lea eax, [ebp - 0x21c]
push eax
call fcn.004630d0
add esp, 4
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x220]
call fcn.00408360
mov edx, dword [ebp - 0x21c]
mov eax, edi
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x472012
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x472012
cmp dword [esi - 0xc], 0
jl 0x471fe4
push str.monidashi
push esi
call fcn.004b193a
add esp, 8
test eax, eax
je 0x471fe4
sub eax, esi
sar eax, 1
jne 0x471fe4
lea eax, [ebp - 0x21c]
push eax
call fcn.00466830
add esp, 4
mov byte [ebp - 4], 4
jmp 0x471ff7
lea eax, [ebp - 0x21c]
push eax
call fcn.00466430
add esp, 4
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x220]
call fcn.00408360
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00408250
mov edi, dword [ebp - 0x220]
cmp dword [edi - 0xc], 0
je 0x47208a
push 0x104
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004d151e
lea ecx, [ebp - 0x218]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x472040
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x47208a
movzx eax, word [ebp + ecx*2 - 0x21a]
cmp eax, 0x5c
je 0x472069
cmp eax, 0x2f
jne 0x472156
lea eax, [ecx*2 - 2]
cmp eax, 0x208
jae 0x4721aa
xor eax, eax
mov word [ebp + ecx*2 - 0x21a], ax
dec ecx
test ecx, ecx
jg 0x472053
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4720a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4720c5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x224], 0
jne 0x4720fa
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x52cf48
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004d096d
add esp, 0xc
mov esi, dword [ebp - 0x228]
mov eax, dword [ebx]
lea ecx, [ebp - 0x218]
push ecx
push ebx
call dword [eax + 0x2c]
test eax, eax
je 0x472125
push 0x12c
call fcn.00475560
add esp, 4
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
push esi
call fcn.004d0a42
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac4b8
mov esp, ebp
pop ebp
ret 0xc
test ecx, ecx
jle 0x47208a
call fcn.0040ed70
mov ecx, eax
call fcn.0040cb00
test eax, eax
lea eax, [ebp - 0x218]
je 0x47217b
push str.Module
jmp 0x47218d
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.LDSGameCenter
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov dword [ebp - 0x224], 1
jmp 0x47208a
call fcn.004ac732
push 0x80004005
call fcn.00404400
int3