Function at 0x482560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x50cd7c
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x370], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
xor eax, esp
push eax
lea eax, [esp + 0x388]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x398]
mov esi, dword [esp + 0x39c]
mov edi, dword [esp + 0x3a0]
lea ecx, [esp + 0x13c]
call fcn.0043a090
mov eax, esi
lea edx, [esp + 0x13c]
mov dword [esp + 0x390], 0
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x30]
call fcn.00436ef0
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x4825ff
mov eax, dword [esp + 0x20]
mov ebx, 0x2e
cmp word [eax + 4], bx
jne 0x48261c
lea ecx, [esp + 0x18]
lea esi, [esp + 0x13c]
call fcn.00438040
jmp 0x48262d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x140]
call fcn.004374e0
cmp byte [esp + 0x134], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x18], esi
jne 0x482655
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x482655
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x260]
mov dword [esp + 0x390], 1
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x260]
mov byte [esp + 0x390], 2
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x30]
call fcn.00436ef0
cmp byte [esp + 0x134], 0
lea eax, [esp + 0x24]
jne 0x4826ac
mov eax, dword [esp + 0x20]
cmp word [eax + 4], bx
jne 0x4826c9
lea ecx, [esp + 0x18]
lea esi, [esp + 0x260]
call fcn.00438040
mov esi, vtable.t_str.0
jmp 0x4826da
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x264]
call fcn.004374e0
cmp byte [esp + 0x134], 0
mov dword [esp + 0x18], esi
jne 0x4826fd
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x24]
cmp eax, ecx
je 0x4826fd
push eax
call fcn.004ccef0
add esp, 4
mov byte [esp + 0x390], 3
cmp byte [esp + 0x258], 0
lea eax, [esp + 0x148]
jne 0x48271d
mov eax, dword [esp + 0x144]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x482791
shr eax, 4
not al
and al, 1
je 0x482791
cmp byte [esp + 0x37c], 0
mov dword [esp + 0x260], esi
jne 0x482761
mov eax, dword [esp + 0x268]
lea edx, [esp + 0x26c]
cmp eax, edx
je 0x482761
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], esi
jne 0x48278d
mov eax, dword [esp + 0x144]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x48278d
push eax
call fcn.004ccef0
add esp, 4
mov al, 1
jmp 0x482804
push 0
lea edx, [esp + 0x140]
push edx
push ebp
lea ecx, [esp + 0x26c]
call fcn.00438310
cmp byte [esp + 0x37c], 0
mov bl, al
mov dword [esp + 0x260], esi
jne 0x4827d6
mov eax, dword [esp + 0x268]
lea ecx, [esp + 0x26c]
cmp eax, ecx
je 0x4827d6
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x258], 0
mov dword [esp + 0x13c], esi
jne 0x482802
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x148]
cmp eax, edx
je 0x482802
push eax
call fcn.004ccef0
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x388]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x370]
xor ecx, esp
call fcn.004ccee1
add esp, 0x380
ret 0xc