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

Disassembly:
push 0xffffffffffffffff
push 0x50ebc6
mov eax, dword fs:[0]
push eax
mov eax, 0x1308
call fcn.004d75e0
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0x1300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
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.00438f20
mov eax, edi
lea edx, [esp + 0x5fc]
mov dword [esp + 0x1324], 0
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v2.bin
lea ecx, [esp + 0x3c4]
call fcn.00435dc0
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x46c176
mov eax, dword [esp + 0x3b4]
mov ebp, 0x2e
lea ecx, [esp + 0x3ac]
cmp word [eax + 4], bp
jne 0x46c196
lea esi, [esp + 0x5fc]
call fcn.00436ef0
jmp 0x46c1a3
push ecx
lea ecx, [esp + 0x600]
call fcn.00436390
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46c1d3
mov eax, dword [esp + 0x3b4]
lea edx, [esp + 0x3b8]
cmp eax, edx
je 0x46c1d3
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x4d4]
mov dword [esp + 0x1324], 1
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x4d4]
mov byte [esp + 0x1324], 2
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x3c4]
call fcn.00435dc0
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x46c233
mov eax, dword [esp + 0x3b4]
cmp word [eax + 4], bp
jne 0x46c24e
lea ecx, [esp + 0x3ac]
lea esi, [esp + 0x4d4]
call fcn.00436ef0
jmp 0x46c262
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x4d8]
call fcn.00436390
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x46c292
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x46c292
push eax
call fcn.004cc2c0
add esp, 4
mov byte [esp + 0x1324], 3
cmp byte [esp + 0x718], 0
lea eax, [esp + 0x608]
jne 0x46c2b2
mov eax, dword [esp + 0x604]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x46c2fc
shr eax, 4
not al
and al, 1
je 0x46c2fc
cmp byte [esp + 0x5f0], 0
lea eax, [esp + 0x4e0]
jne 0x46c2e4
mov eax, dword [esp + 0x4dc]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x46c2fc
shr eax, 4
not al
and al, 1
jne 0x46ca7a
lea ecx, [esp + 0x724]
call fcn.00438f20
mov eax, ebx
lea edx, [esp + 0x724]
mov byte [esp + 0x1324], 4
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v2.bin
lea ecx, [esp + 0x64]
call fcn.00435dc0
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x46c348
mov eax, dword [esp + 0x54]
cmp word [eax + 4], 0x2e
jne 0x46c361
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x724]
call fcn.00436ef0
jmp 0x46c372
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x728]
call fcn.00436390
cmp byte [esp + 0x168], 0
mov dword [esp + 0x4c], vtable.t_str.0
jne 0x46c399
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x46c399
push eax
call fcn.004cc2c0
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.004371c0
test al, al
jne 0x46c46f
mov ecx, esi
call fcn.00438300
push 0x52d15c
push 0x51f1f4
mov edx, eax
call fcn.00439710
add esp, 8
cmp byte [esp + 0x840], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x724], esi
jne 0x46c410
mov eax, dword [esp + 0x72c]
lea ecx, [esp + 0x730]
cmp eax, ecx
je 0x46c410
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x5f0], 0
mov dword [esp + 0x4d4], esi
jne 0x46c43c
mov eax, dword [esp + 0x4dc]
lea edx, [esp + 0x4e0]
cmp eax, edx
je 0x46c43c
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], esi
jne 0x46c468
mov eax, dword [esp + 0x604]
lea ecx, [esp + 0x608]
cmp eax, ecx
je 0x46c468
push eax
call fcn.004cc2c0
add esp, 4
xor al, al
jmp 0x46cad9
lea ecx, [esp + 0x3ac]
call fcn.00438f20
mov eax, ebx
lea edx, [esp + 0x3ac]
mov byte [esp + 0x1324], 6
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x64]
call fcn.00435dc0
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x46c4bb
mov eax, dword [esp + 0x54]
cmp word [eax + 4], 0x2e
jne 0x46c4d4
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x3ac]
call fcn.00436ef0
jmp 0x46c4e5
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x3b0]
call fcn.00436390
cmp byte [esp + 0x168], 0
mov ebx, vtable.t_str.0
mov dword [esp + 0x4c], ebx
jne 0x46c50d
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x46c50d
push eax
call fcn.004cc2c0
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.004371c0
test al, al
jne 0x46c601
mov ecx, esi
call fcn.00438300
push 0x52d15c
push 0x51f1f4
mov edx, eax
call fcn.00439710
add esp, 8
cmp byte [esp + 0x4c8], 0
mov dword [esp + 0x3ac], ebx
jne 0x46c57f
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x46c57f
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x840], 0
mov dword [esp + 0x724], ebx
jne 0x46c5ab
mov eax, dword [esp + 0x72c]
lea edx, [esp + 0x730]
cmp eax, edx
je 0x46c5ab
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x5f0], 0
mov dword [esp + 0x4d4], ebx
jne 0x46c5d7
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x46c5d7
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], ebx
jne 0x46c468
mov eax, dword [esp + 0x604]
lea edx, [esp + 0x608]
cmp eax, edx
jmp 0x46c45d
lea ecx, [esp + 0x84c]
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x84c]
mov byte [esp + 0x1324], 8
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v1.bin
lea ecx, [esp + 0x64]
call fcn.00435dc0
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x46c64d
mov eax, dword [esp + 0x54]
mov ebx, 0x2e
cmp word [eax + 4], bx
jne 0x46c66a
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x84c]
call fcn.00436ef0
jmp 0x46c67b
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x850]
call fcn.00436390
cmp byte [esp + 0x168], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4c], esi
jne 0x46c6a3
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x46c6a3
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x974]
call fcn.00438f20
mov eax, edi
lea edx, [esp + 0x974]
mov byte [esp + 0x1324], 0xa
call fcn.00439130
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v1.bin
lea ecx, [esp + 0x190]
call fcn.00435dc0
cmp byte [esp + 0x294], 0
lea eax, [esp + 0x184]
jne 0x46c6f8
mov eax, dword [esp + 0x180]
cmp word [eax + 4], bx
jne 0x46c718
lea ecx, [esp + 0x178]
lea esi, [esp + 0x974]
call fcn.00436ef0
mov esi, vtable.t_str.0
jmp 0x46c72c
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0x978]
call fcn.00436390
cmp byte [esp + 0x294], 0
mov dword [esp + 0x178], esi
jne 0x46c758
mov eax, dword [esp + 0x180]
lea ecx, [esp + 0x184]
cmp eax, ecx
je 0x46c758
push eax
call fcn.004cc2c0
add esp, 4
mov byte [esp + 0x1324], 0xb
cmp byte [esp + 0x968], 0
lea eax, [esp + 0x858]
jne 0x46c778
mov eax, dword [esp + 0x854]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x46ca0a
shr eax, 4
not al
and al, 1
je 0x46ca0a
lea ecx, [esp + 0x974]
call fcn.00436580
test al, al
je 0x46ca0a
lea edx, [esp + 0xa9c]
push edx
call fcn.00460fc0
lea eax, [esp + 0x20]
push eax
push 0x1fff8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], fcn.004cc39d
mov dword [esp + 0x2c], fcn.004ce4c2
mov dword [esp + 0x30], fcn.004cc2c0
call fcn.004027e0
mov byte [esp + 0x1324], 0xd
cmp byte [esp + 0x5f0], 0
lea eax, [esp + 0x4e0]
jne 0x46c800
mov eax, dword [esp + 0x4dc]
add eax, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x608]
jne 0x46c81f
mov eax, dword [esp + 0x604]
add eax, 4
cmp byte [esp + 0xa90], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x980]
jne 0x46c83e
mov eax, dword [esp + 0x97c]
add eax, 4
cmp byte [esp + 0x968], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x858]
jne 0x46c85d
mov eax, dword [esp + 0x854]
lea ecx, [esp + 0x4c]
add eax, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.00474a00
lea edx, [esp + 0x29c]
mov bl, 0xe
push edx
mov byte [esp + 0x1328], bl
call fcn.00474a00
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.004629c0
test al, al
jne 0x46c983
push str._bTvV
mov ecx, esi
call fcn.00402790
lea edx, [esp + 0x29c]
push edx
mov byte [esp + 0x1328], bl
call fcn.00474ac0
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1328], 0xd
call fcn.00474ac0
mov byte [esp + 0x1324], 0xc
mov esi, dword [esp + 0x44]
test esi, esi
je 0x46c91f
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 0x46c910
lea ecx, [esp + 0xa9c]
push ecx
mov byte [esp + 0x1328], 0xb
call fcn.004610f0
lea ecx, [esp + 0x974]
call fcn.00439080
lea ecx, [esp + 0x84c]
call fcn.00439080
lea ecx, [esp + 0x3ac]
call fcn.00439080
lea ecx, [esp + 0x724]
call fcn.00439080
lea ecx, [esp + 0x4d4]
call fcn.00439080
lea ecx, [esp + 0x5fc]
call fcn.00439080
xor al, al
jmp 0x46cad9
push esi
lea edx, [esp + 0xaa0]
push edx
xor edx, edx
lea ecx, [esp + 0x3c]
call fcn.004631e0
test al, al
jne 0x46c9a7
push 0x52d1f4
mov ecx, esi
call fcn.00402790
lea eax, [esp + 0x29c]
push eax
mov byte [esp + 0x1328], bl
call fcn.00474ac0
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x1328], 0xd
call fcn.00474ac0
mov byte [esp + 0x1324], 0xc
mov esi, dword [esp + 0x44]
test esi, esi
je 0x46c9f0
mov edi, dword [esp + 0x40]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x46c9e1
lea edx, [esp + 0xa9c]
push edx
mov byte [esp + 0x1328], 0xb
call fcn.004610f0
mov esi, vtable.t_str.0
cmp byte [esp + 0xa90], 0
mov dword [esp + 0x974], esi
jne 0x46ca36
mov eax, dword [esp + 0x97c]
lea ecx, [esp + 0x980]
cmp eax, ecx
je 0x46ca36
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x968], 0
mov dword [esp + 0x84c], esi
jne 0x46ca62
mov eax, dword [esp + 0x854]
lea edx, [esp + 0x858]
cmp eax, edx
je 0x46ca62
push eax
call fcn.004cc2c0
add esp, 4
lea ecx, [esp + 0x3ac]
call fcn.00439080
lea ecx, [esp + 0x724]
call fcn.00439080
cmp byte [esp + 0x5f0], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4d4], esi
jne 0x46caab
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x46caab
push eax
call fcn.004cc2c0
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], esi
jne 0x46cad7
mov eax, dword [esp + 0x604]
lea edx, [esp + 0x608]
cmp eax, edx
je 0x46cad7
push eax
call fcn.004cc2c0
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.004cc2b1
add esp, 0x1314
ret 4