Function at 0x470433
Capabilities:
Get common file path

Disassembly:
push 0x270
mov eax, 0x5163bf
call fcn.004d0314
mov eax, dword [ebp + 8]
and dword [ebp - 0x254], 0
mov dword [ebp - 0x238], eax
push str._appdata_
lea eax, [ebp - 0x228]
push eax
call fcn.004022e5
mov dword [ebp - 4], 1
lea eax, [ebp - 0x274]
push eax
call fcn.0046f497
mov byte [ebp - 4], 2
push str._AppData_
lea eax, [ebp - 0x220]
push eax
call fcn.00403739
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
push eax
lea ebx, [ebp - 0x274]
call fcn.00470085
mov dword [eax], 0x1a
mov byte [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
call fcn.00403148
push str._ProgramFiles_
lea eax, [ebp - 0x220]
push eax
call fcn.00403739
mov byte [ebp - 4], 4
lea eax, [ebp - 0x220]
push eax
call fcn.00470085
mov dword [eax], 0x26
mov byte [ebp - 4], 2
lea eax, [ebp - 0x220]
push eax
call fcn.00403148
lea eax, [ebp - 0x250]
push eax
call fcn.0040df06
mov byte [ebp - 4], 5
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x228]
call fcn.00470b3a
mov eax, dword [ebp - 0x240]
sub eax, dword [ebp - 0x244]
pop ecx
sar eax, 2
pop ecx
cmp eax, 1
jb 0x470719
test eax, eax
ja 0x470533
call fcn.004cad24
push dword [ebp - 0x244]
lea eax, [ebp - 0x22c]
push eax
call fcn.004029d3
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x470560
push 0x80070057
call fcn.00402a11
movzx edx, word [eax]
push 0x25
pop esi
cmp si, dx
jne 0x47070a
lea edx, [ecx - 1]
test edx, edx
jl 0x470556
cmp edx, ecx
jg 0x470556
movzx eax, word [eax + edx*2]
push esi
pop ecx
cmp cx, ax
jne 0x47070a
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00409c07
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x27c]
push eax
lea ebx, [ebp - 0x274]
call fcn.004701a2
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 6
lea eax, [ebp - 0x220]
push eax
call fcn.00403148
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x274]
lea edi, [ebp - 0x224]
lea esi, [ebp - 0x234]
mov dword [ebp - 0x224], eax
call fcn.00470205
test al, al
jne 0x47070a
call fcn.00470272
mov esi, dword [eax + 4]
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
xor edi, edi
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.004ce6f0
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x21c]
push eax
push edi
call dword [0x51a48c]
cmp eax, edi
je 0x4706f3
cmp word [ebp - 0x21c], di
je 0x4706f3
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004022e5
mov byte [ebp - 4], 8
lea eax, [ebp - 0x220]
lea edi, [ebp - 0x228]
call fcn.00403a2e
mov byte [ebp - 4], 6
lea eax, [ebp - 0x220]
push eax
call fcn.004025f7
mov ebx, dword [ebp - 0x244]
lea edi, [ebp - 0x250]
lea esi, [ebp - 0x234]
call fcn.0040dc5a
push dword [ebp - 0x230]
lea eax, [ebp - 0x27c]
push dword [ebp - 0x234]
mov ecx, edi
call fcn.00470332
push 0x52b784
mov eax, edi
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0047039c
add esp, 0xc
mov byte [ebp - 4], 9
push dword [eax]
lea eax, [ebp - 0x228]
call fcn.0040d65b
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x220]
call fcn.004028da
jmp 0x47070a
push str.ERROR_CHECK_BOOL:bRet___IsStrEmpty_szRealPath_
push 0x308
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
push 5
pop ecx
call fcn.0040ef48
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x22c]
call fcn.004028da
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
push eax
call fcn.0040dd8b
mov byte [ebp - 4], 1
lea eax, [ebp - 0x274]
push eax
call fcn.0046f9b4
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x238]
call fcn.004029d3
mov dword [ebp - 0x254], 1
mov byte [ebp - 4], 0
lea eax, [ebp - 0x228]
push eax
call fcn.004025f7
mov eax, dword [ebp - 0x238]
call fcn.004d0397
ret