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

Disassembly:
push 0xffffffffffffffff
push 0x508826
mov eax, dword fs:[0]
push eax
mov eax, 0x1308
call fcn.004d14d0
mov eax, dword [0x5375a0]
xor eax, esp
mov dword [esp + 0x1300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5375a0]
xor eax, esp
push eax
lea eax, [esp + 0x131c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x132c]
mov edi, ecx
lea ecx, [esp + 0x5fc]
mov dword [esp + 0x1c], eax
mov ebx, edx
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x5fc]
mov dword [esp + 0x1324], 0
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v2.bin
lea ecx, [esp + 0x3c4]
call fcn.00435960
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x46bc36
mov eax, dword [esp + 0x3b4]
mov ebp, 0x2e
lea ecx, [esp + 0x3ac]
cmp word [eax + 4], bp
jne 0x46bc56
lea esi, [esp + 0x5fc]
call fcn.00436ab0
jmp 0x46bc63
push ecx
lea ecx, [esp + 0x600]
call fcn.00435f50
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46bc93
mov eax, dword [esp + 0x3b4]
lea edx, [esp + 0x3b8]
cmp eax, edx
je 0x46bc93
push eax
call fcn.004c6103
add esp, 4
lea ecx, [esp + 0x4d4]
mov dword [esp + 0x1324], 1
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x4d4]
mov byte [esp + 0x1324], 2
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x3c4]
call fcn.00435960
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x46bcf3
mov eax, dword [esp + 0x3b4]
cmp word [eax + 4], bp
jne 0x46bd0e
lea ecx, [esp + 0x3ac]
lea esi, [esp + 0x4d4]
call fcn.00436ab0
jmp 0x46bd22
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x4d8]
call fcn.00435f50
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46bd52
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x46bd52
push eax
call fcn.004c6103
add esp, 4
mov byte [esp + 0x1324], 3
cmp byte [esp + 0x718], 0
lea eax, [esp + 0x608]
jne 0x46bd72
mov eax, dword [esp + 0x604]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x46bdbc
shr eax, 4
not al
and al, 1
je 0x46bdbc
cmp byte [esp + 0x5f0], 0
lea eax, [esp + 0x4e0]
jne 0x46bda4
mov eax, dword [esp + 0x4dc]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x46bdbc
shr eax, 4
not al
and al, 1
jne 0x46c53a
lea ecx, [esp + 0x724]
call fcn.00438ae0
mov eax, ebx
lea edx, [esp + 0x724]
mov byte [esp + 0x1324], 4
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v2.bin
lea ecx, [esp + 0x64]
call fcn.00435960
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x46be08
mov eax, dword [esp + 0x54]
cmp word [eax + 4], 0x2e
jne 0x46be21
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x724]
call fcn.00436ab0
jmp 0x46be32
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x728]
call fcn.00435f50
cmp byte [esp + 0x168], 0
mov dword [esp + 0x4c], vtable.t_str.0
jne 0x46be59
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x46be59
push eax
call fcn.004c6103
add esp, 4
mov esi, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x600]
push edx
push esi
lea ecx, [esp + 0x730]
mov byte [esp + 0x1330], 5
call fcn.00436d80
test al, al
jne 0x46bf2f
mov ecx, esi
call fcn.00437ec0
push 0x52573c
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
cmp byte [esp + 0x840], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x724], esi
jne 0x46bed0
mov eax, dword [esp + 0x72c]
lea ecx, [esp + 0x730]
cmp eax, ecx
je 0x46bed0
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x5f0], 0
mov dword [esp + 0x4d4], esi
jne 0x46befc
mov eax, dword [esp + 0x4dc]
lea edx, [esp + 0x4e0]
cmp eax, edx
je 0x46befc
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], esi
jne 0x46bf28
mov eax, dword [esp + 0x604]
lea ecx, [esp + 0x608]
cmp eax, ecx
je 0x46bf28
push eax
call fcn.004c6103
add esp, 4
xor al, al
jmp 0x46c599
lea ecx, [esp + 0x3ac]
call fcn.00438ae0
mov eax, ebx
lea edx, [esp + 0x3ac]
mov byte [esp + 0x1324], 6
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x64]
call fcn.00435960
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x46bf7b
mov eax, dword [esp + 0x54]
cmp word [eax + 4], 0x2e
jne 0x46bf94
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x3ac]
call fcn.00436ab0
jmp 0x46bfa5
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x3b0]
call fcn.00435f50
cmp byte [esp + 0x168], 0
mov ebx, vtable.t_str.0
mov dword [esp + 0x4c], ebx
jne 0x46bfcd
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x46bfcd
push eax
call fcn.004c6103
add esp, 4
mov esi, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x4d8]
push edx
push esi
lea ecx, [esp + 0x3b8]
mov byte [esp + 0x1330], 7
call fcn.00436d80
test al, al
jne 0x46c0c1
mov ecx, esi
call fcn.00437ec0
push 0x52573c
push 0x5192f4
mov edx, eax
call fcn.004392f0
add esp, 8
cmp byte [esp + 0x4c8], 0
mov dword [esp + 0x3ac], ebx
jne 0x46c03f
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x46c03f
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x840], 0
mov dword [esp + 0x724], ebx
jne 0x46c06b
mov eax, dword [esp + 0x72c]
lea edx, [esp + 0x730]
cmp eax, edx
je 0x46c06b
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x5f0], 0
mov dword [esp + 0x4d4], ebx
jne 0x46c097
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x46c097
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], ebx
jne 0x46bf28
mov eax, dword [esp + 0x604]
lea edx, [esp + 0x608]
cmp eax, edx
jmp 0x46bf1d
lea ecx, [esp + 0x84c]
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x84c]
mov byte [esp + 0x1324], 8
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v1.bin
lea ecx, [esp + 0x64]
call fcn.00435960
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x46c10d
mov eax, dword [esp + 0x54]
mov ebx, 0x2e
cmp word [eax + 4], bx
jne 0x46c12a
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x84c]
call fcn.00436ab0
jmp 0x46c13b
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x850]
call fcn.00435f50
cmp byte [esp + 0x168], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4c], esi
jne 0x46c163
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x46c163
push eax
call fcn.004c6103
add esp, 4
lea ecx, [esp + 0x974]
call fcn.00438ae0
mov eax, edi
lea edx, [esp + 0x974]
mov byte [esp + 0x1324], 0xa
call fcn.00438d30
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v1.bin
lea ecx, [esp + 0x190]
call fcn.00435960
cmp byte [esp + 0x294], 0
lea eax, [esp + 0x184]
jne 0x46c1b8
mov eax, dword [esp + 0x180]
cmp word [eax + 4], bx
jne 0x46c1d8
lea ecx, [esp + 0x178]
lea esi, [esp + 0x974]
call fcn.00436ab0
mov esi, vtable.t_str.0
jmp 0x46c1ec
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0x978]
call fcn.00435f50
cmp byte [esp + 0x294], 0
mov dword [esp + 0x178], esi
jne 0x46c218
mov eax, dword [esp + 0x180]
lea ecx, [esp + 0x184]
cmp eax, ecx
je 0x46c218
push eax
call fcn.004c6103
add esp, 4
mov byte [esp + 0x1324], 0xb
cmp byte [esp + 0x968], 0
lea eax, [esp + 0x858]
jne 0x46c238
mov eax, dword [esp + 0x854]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x46c4ca
shr eax, 4
not al
and al, 1
je 0x46c4ca
lea ecx, [esp + 0x974]
call fcn.00436140
test al, al
je 0x46c4ca
lea edx, [esp + 0xa9c]
push edx
call fcn.00460da0
lea eax, [esp + 0x20]
push eax
push 0x1fff8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], fcn.004c61e0
mov dword [esp + 0x2c], fcn.004c83aa
mov dword [esp + 0x30], fcn.004c6103
call fcn.004027e0
mov byte [esp + 0x1324], 0xd
cmp byte [esp + 0x5f0], 0
lea eax, [esp + 0x4e0]
jne 0x46c2c0
mov eax, dword [esp + 0x4dc]
add eax, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x608]
jne 0x46c2df
mov eax, dword [esp + 0x604]
add eax, 4
cmp byte [esp + 0xa90], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x980]
jne 0x46c2fe
mov eax, dword [esp + 0x97c]
add eax, 4
cmp byte [esp + 0x968], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x858]
jne 0x46c31d
mov eax, dword [esp + 0x854]
lea ecx, [esp + 0x4c]
add eax, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.004744b0
lea edx, [esp + 0x29c]
mov bl, 0xe
push edx
mov byte [esp + 0x1328], bl
call fcn.004744b0
mov esi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x2a0]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push esi
lea ecx, [esp + 0xab4]
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x1340], 0xf
call fcn.004627a0
test al, al
jne 0x46c443
push str._bTvV
mov ecx, esi
call fcn.00402790
lea edx, [esp + 0x29c]
push edx
mov byte [esp + 0x1328], bl
call fcn.00474570
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1328], 0xd
call fcn.00474570
mov byte [esp + 0x1324], 0xc
mov esi, dword [esp + 0x44]
test esi, esi
je 0x46c3df
mov edi, dword [esp + 0x40]
lea esp, [esp]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x46c3d0
lea ecx, [esp + 0xa9c]
push ecx
mov byte [esp + 0x1328], 0xb
call fcn.00460ed0
lea ecx, [esp + 0x974]
call fcn.00438c80
lea ecx, [esp + 0x84c]
call fcn.00438c80
lea ecx, [esp + 0x3ac]
call fcn.00438c80
lea ecx, [esp + 0x724]
call fcn.00438c80
lea ecx, [esp + 0x4d4]
call fcn.00438c80
lea ecx, [esp + 0x5fc]
call fcn.00438c80
xor al, al
jmp 0x46c599
push esi
lea edx, [esp + 0xaa0]
push edx
xor edx, edx
lea ecx, [esp + 0x3c]
call fcn.00462fc0
test al, al
jne 0x46c467
push 0x5257d4
mov ecx, esi
call fcn.00402790
lea eax, [esp + 0x29c]
push eax
mov byte [esp + 0x1328], bl
call fcn.00474570
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x1328], 0xd
call fcn.00474570
mov byte [esp + 0x1324], 0xc
mov esi, dword [esp + 0x44]
test esi, esi
je 0x46c4b0
mov edi, dword [esp + 0x40]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x46c4a1
lea edx, [esp + 0xa9c]
push edx
mov byte [esp + 0x1328], 0xb
call fcn.00460ed0
mov esi, vtable.t_str.0
cmp byte [esp + 0xa90], 0
mov dword [esp + 0x974], esi
jne 0x46c4f6
mov eax, dword [esp + 0x97c]
lea ecx, [esp + 0x980]
cmp eax, ecx
je 0x46c4f6
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x968], 0
mov dword [esp + 0x84c], esi
jne 0x46c522
mov eax, dword [esp + 0x854]
lea edx, [esp + 0x858]
cmp eax, edx
je 0x46c522
push eax
call fcn.004c6103
add esp, 4
lea ecx, [esp + 0x3ac]
call fcn.00438c80
lea ecx, [esp + 0x724]
call fcn.00438c80
cmp byte [esp + 0x5f0], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4d4], esi
jne 0x46c56b
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x46c56b
push eax
call fcn.004c6103
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], esi
jne 0x46c597
mov eax, dword [esp + 0x604]
lea edx, [esp + 0x608]
cmp eax, edx
je 0x46c597
push eax
call fcn.004c6103
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x131c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1300]
xor ecx, esp
call fcn.004c60f4
add esp, 0x1314
ret 4