Function at 0x4be59d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
cmp dword [0x735a38], 0
push ebx
push esi
push edi
mov ebx, ecx
jle 0x4be93f
cmp dword [0x735a3c], 0
jle 0x4be93f
cmp dword [0x735a40], 0
jle 0x4be93f
push str.usercardlist
push 0x20
pop eax
test ebx, ebx
lea ecx, [ebx - 0x3cc]
cmove ecx, eax
call fcn.005cfc5e
test eax, eax
je 0x4be5f3
lea esi, [eax - 8]
jmp 0x4be5f5
xor esi, esi
mov dword [ebp - 0x14], esi
test esi, esi
je 0x4be8f6
mov eax, dword [esi]
xor edi, edi
mov ecx, esi
mov dword [ebp - 0x10], edi
call dword [eax + 0xc]
test eax, eax
je 0x4be8f6
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax]
test eax, eax
je 0x4be624
lea edi, [eax - 8]
jmp 0x4be626
xor edi, edi
lea ecx, [edi + 8]
mov dword [ebp - 4], edi
mov eax, dword [ecx]
call dword [eax + 0x16c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00418dea
mov esi, esp
mov dword [ebp - 0x18], eax
push eax
call fcn.00418dea
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.004b57d7
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jle 0x4be8d5
push eax
lea eax, [ebp - 0xe8]
mov ecx, ebx
push eax
call fcn.0049853d
cmp dword [ebp - 0xe8], 0
jle 0x4be902
lea ecx, [ebp - 0x44]
call fcn.00440206
push 0
push 3
push dword [ebp - 0x8c]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x44]
call fcn.00450fb5
push 1
push 3
push dword [ebp - 0x88]
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x44]
call fcn.00450fb5
push dword [0x735a40]
lea ecx, [ebp - 0x70]
push dword [0x735a3c]
push dword [0x735a38]
call fcn.0043fa88
push 0xb
pop ecx
lea esi, [ebp - 0x114]
lea edi, [ebp - 0x140]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x70]
call fcn.0044caa6
test al, al
je 0x4be719
push 0xb
pop ecx
lea esi, [ebp - 0x16c]
lea edi, [ebp - 0x198]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x70]
call fcn.0044c9e4
test al, al
jne 0x4be738
push 3
sub esp, 0x2c
lea esi, [ebp - 0x44]
push 0xb
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x70]
call fcn.004a9236
test al, al
je 0x4be8ba
mov ecx, dword [ebp - 4]
add ecx, 8
push 1
mov eax, dword [ecx]
call dword [eax + 0x180]
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x4be827
mov eax, dword [0x735a38]
cmp dword [ebx + 0x8c], eax
je 0x4be80e
call fcn.00418f81
push eax
lea ecx, [ebp - 0xc]
call fcn.0041775d
push dword [0x735a38]
lea eax, [ebp - 0xc]
push dword [0x735a84]
push str._s_d.xml
push eax
call fcn.0041a1e9
mov esi, dword [ebp - 0xc]
add esp, 0x10
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4be7b2
push esi
call fcn.0047cda5
pop ecx
test edx, edx
ja 0x4be7d0
jb 0x4be7b2
cmp eax, 0xbb8
jae 0x4be7d0
mov eax, dword [0x735a38]
push 0
push esi
add eax, 0xfffff8ed
movzx eax, ax
push 0x69d7fc
push eax
call fcn.004ea0d5
add esp, 0x10
push ecx
mov ecx, esp
push str.Taboo
call fcn.004177e7
push ecx
add esi, 0xfffffff0
mov edi, esp
push esi
call fcn.00418dea
pop ecx
add eax, 0x10
lea ecx, [ebx + 0x18]
mov dword [edi], eax
call fcn.004a6e35
mov eax, dword [0x735a38]
mov ecx, esi
mov dword [ebx + 0x8c], eax
call fcn.00419521
mov eax, dword [0x735a38]
push dword [0x735a40]
mov ecx, ebx
push dword [0x735a3c]
push eax
call fcn.004f6305
jmp 0x4be8ca
cmp eax, 3
jne 0x4be858
push dword [0x735a40]
lea eax, [ebp - 0xe8]
push dword [0x735a3c]
push dword [0x735a38]
sub esp, 0x78
mov ecx, esp
push eax
call fcn.004465c5
mov ecx, ebx
call fcn.004f1187
jmp 0x4be8ca
cmp eax, 4
jne 0x4be889
push dword [0x735a40]
lea eax, [ebp - 0xe8]
push dword [0x735a3c]
push dword [0x735a38]
sub esp, 0x78
mov ecx, esp
push eax
call fcn.004465c5
mov ecx, ebx
call fcn.004fd946
jmp 0x4be8ca
cmp eax, 5
jne 0x4be8ca
push dword [0x735a40]
lea eax, [ebp - 0xe8]
push dword [0x735a3c]
push dword [0x735a38]
sub esp, 0x78
mov ecx, esp
push eax
call fcn.004465c5
mov ecx, ebx
call fcn.004f4835
jmp 0x4be8ca
mov ecx, dword [ebp - 4]
add ecx, 8
push 0
mov eax, dword [ecx]
call dword [eax + 0x180]
lea ecx, [ebp - 0xe8]
call fcn.0044947a
mov ecx, dword [ebp - 0x18]
call fcn.00419521
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov edi, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
call dword [eax + 0xc]
cmp edi, eax
jb 0x4be614
mov ecx, ebx
call fcn.004a129f
xor eax, eax
inc eax
jmp 0x4be941
lea esi, [edi + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
push eax
lea ecx, [ebp - 8]
call fcn.004177e7
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x180]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00419521
lea ecx, [ebp - 0xe8]
call fcn.0044947a
mov ecx, dword [ebp - 0x18]
call fcn.00419521
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10