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

Disassembly:
push 0xffffffffffffffff
push 0x510546
mov eax, dword fs:[0]
push eax
mov eax, 0x1308
call fcn.004d8c90
mov eax, dword [0x5405a0]
xor eax, esp
mov dword [esp + 0x1300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5405a0]
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.0043a090
mov eax, edi
lea edx, [esp + 0x5fc]
mov dword [esp + 0x1324], 0
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v2.bin
lea ecx, [esp + 0x3c4]
call fcn.00436ef0
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x474be6
mov eax, dword [esp + 0x3b4]
mov ebp, 0x2e
lea ecx, [esp + 0x3ac]
cmp word [eax + 4], bp
jne 0x474c06
lea esi, [esp + 0x5fc]
call fcn.00438040
jmp 0x474c13
push ecx
lea ecx, [esp + 0x600]
call fcn.004374e0
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x474c43
mov eax, dword [esp + 0x3b4]
lea edx, [esp + 0x3b8]
cmp eax, edx
je 0x474c43
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x4d4]
mov dword [esp + 0x1324], 1
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x4d4]
mov byte [esp + 0x1324], 2
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x3c4]
call fcn.00436ef0
cmp byte [esp + 0x4c8], 0
lea eax, [esp + 0x3b8]
jne 0x474ca3
mov eax, dword [esp + 0x3b4]
cmp word [eax + 4], bp
jne 0x474cbe
lea ecx, [esp + 0x3ac]
lea esi, [esp + 0x4d4]
call fcn.00438040
jmp 0x474cd2
lea eax, [esp + 0x3ac]
push eax
lea ecx, [esp + 0x4d8]
call fcn.004374e0
cmp byte [esp + 0x4c8], 0
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
jne 0x474d02
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x474d02
push eax
call fcn.004ccef0
add esp, 4
mov byte [esp + 0x1324], 3
cmp byte [esp + 0x718], 0
lea eax, [esp + 0x608]
jne 0x474d22
mov eax, dword [esp + 0x604]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x474d6c
shr eax, 4
not al
and al, 1
je 0x474d6c
cmp byte [esp + 0x5f0], 0
lea eax, [esp + 0x4e0]
jne 0x474d54
mov eax, dword [esp + 0x4dc]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x474d6c
shr eax, 4
not al
and al, 1
jne 0x4754ea
lea ecx, [esp + 0x724]
call fcn.0043a090
mov eax, ebx
lea edx, [esp + 0x724]
mov byte [esp + 0x1324], 4
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v2.bin
lea ecx, [esp + 0x64]
call fcn.00436ef0
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x474db8
mov eax, dword [esp + 0x54]
cmp word [eax + 4], 0x2e
jne 0x474dd1
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x724]
call fcn.00438040
jmp 0x474de2
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x728]
call fcn.004374e0
cmp byte [esp + 0x168], 0
mov dword [esp + 0x4c], vtable.t_str.0
jne 0x474e09
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x474e09
push eax
call fcn.004ccef0
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.00438310
test al, al
jne 0x474edf
mov ecx, esi
call fcn.00439450
push 0x52dbf4
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x840], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x724], esi
jne 0x474e80
mov eax, dword [esp + 0x72c]
lea ecx, [esp + 0x730]
cmp eax, ecx
je 0x474e80
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x5f0], 0
mov dword [esp + 0x4d4], esi
jne 0x474eac
mov eax, dword [esp + 0x4dc]
lea edx, [esp + 0x4e0]
cmp eax, edx
je 0x474eac
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], esi
jne 0x474ed8
mov eax, dword [esp + 0x604]
lea ecx, [esp + 0x608]
cmp eax, ecx
je 0x474ed8
push eax
call fcn.004ccef0
add esp, 4
xor al, al
jmp 0x475549
lea ecx, [esp + 0x3ac]
call fcn.0043a090
mov eax, ebx
lea edx, [esp + 0x3ac]
mov byte [esp + 0x1324], 6
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v2.bin
lea ecx, [esp + 0x64]
call fcn.00436ef0
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x474f2b
mov eax, dword [esp + 0x54]
cmp word [eax + 4], 0x2e
jne 0x474f44
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x3ac]
call fcn.00438040
jmp 0x474f55
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x3b0]
call fcn.004374e0
cmp byte [esp + 0x168], 0
mov ebx, vtable.t_str.0
mov dword [esp + 0x4c], ebx
jne 0x474f7d
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x474f7d
push eax
call fcn.004ccef0
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.00438310
test al, al
jne 0x475071
mov ecx, esi
call fcn.00439450
push 0x52dbf4
push 0x52139c
mov edx, eax
call fcn.0043a8a0
add esp, 8
cmp byte [esp + 0x4c8], 0
mov dword [esp + 0x3ac], ebx
jne 0x474fef
mov eax, dword [esp + 0x3b4]
lea ecx, [esp + 0x3b8]
cmp eax, ecx
je 0x474fef
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x840], 0
mov dword [esp + 0x724], ebx
jne 0x47501b
mov eax, dword [esp + 0x72c]
lea edx, [esp + 0x730]
cmp eax, edx
je 0x47501b
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x5f0], 0
mov dword [esp + 0x4d4], ebx
jne 0x475047
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x475047
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], ebx
jne 0x474ed8
mov eax, dword [esp + 0x604]
lea edx, [esp + 0x608]
cmp eax, edx
jmp 0x474ecd
lea ecx, [esp + 0x84c]
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x84c]
mov byte [esp + 0x1324], 8
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_picidx.v1.bin
lea ecx, [esp + 0x64]
call fcn.00436ef0
cmp byte [esp + 0x168], 0
lea eax, [esp + 0x58]
jne 0x4750bd
mov eax, dword [esp + 0x54]
mov ebx, 0x2e
cmp word [eax + 4], bx
jne 0x4750da
lea ecx, [esp + 0x4c]
lea esi, [esp + 0x84c]
call fcn.00438040
jmp 0x4750eb
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x850]
call fcn.004374e0
cmp byte [esp + 0x168], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4c], esi
jne 0x475113
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x475113
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x974]
call fcn.0043a090
mov eax, edi
lea edx, [esp + 0x974]
mov byte [esp + 0x1324], 0xa
call fcn.0043a2e0
push 0
push 0
push 0
push 0
push 0
push str.sgim_piccell.v1.bin
lea ecx, [esp + 0x190]
call fcn.00436ef0
cmp byte [esp + 0x294], 0
lea eax, [esp + 0x184]
jne 0x475168
mov eax, dword [esp + 0x180]
cmp word [eax + 4], bx
jne 0x475188
lea ecx, [esp + 0x178]
lea esi, [esp + 0x974]
call fcn.00438040
mov esi, vtable.t_str.0
jmp 0x47519c
lea edx, [esp + 0x178]
push edx
lea ecx, [esp + 0x978]
call fcn.004374e0
cmp byte [esp + 0x294], 0
mov dword [esp + 0x178], esi
jne 0x4751c8
mov eax, dword [esp + 0x180]
lea ecx, [esp + 0x184]
cmp eax, ecx
je 0x4751c8
push eax
call fcn.004ccef0
add esp, 4
mov byte [esp + 0x1324], 0xb
cmp byte [esp + 0x968], 0
lea eax, [esp + 0x858]
jne 0x4751e8
mov eax, dword [esp + 0x854]
add eax, 4
push eax
call ebp
cmp eax, 0xffffffff
je 0x47547a
shr eax, 4
not al
and al, 1
je 0x47547a
lea ecx, [esp + 0x974]
call fcn.004376d0
test al, al
je 0x47547a
lea edx, [esp + 0xa9c]
push edx
call fcn.00469da0
lea eax, [esp + 0x20]
push eax
push 0x1fff8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], fcn.004ccfcd
mov dword [esp + 0x2c], fcn.004cf168
mov dword [esp + 0x30], fcn.004ccef0
call fcn.00402990
mov byte [esp + 0x1324], 0xd
cmp byte [esp + 0x5f0], 0
lea eax, [esp + 0x4e0]
jne 0x475270
mov eax, dword [esp + 0x4dc]
add eax, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x608]
jne 0x47528f
mov eax, dword [esp + 0x604]
add eax, 4
cmp byte [esp + 0xa90], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x980]
jne 0x4752ae
mov eax, dword [esp + 0x97c]
add eax, 4
cmp byte [esp + 0x968], 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x858]
jne 0x4752cd
mov eax, dword [esp + 0x854]
lea ecx, [esp + 0x4c]
add eax, 4
push ecx
mov dword [esp + 0x34], eax
call fcn.0047d4c0
lea edx, [esp + 0x29c]
mov bl, 0xe
push edx
mov byte [esp + 0x1328], bl
call fcn.0047d4c0
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.0046b750
test al, al
jne 0x4753f3
push str._bTvV
mov ecx, esi
call fcn.00402960
lea edx, [esp + 0x29c]
push edx
mov byte [esp + 0x1328], bl
call fcn.0047d580
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0x1328], 0xd
call fcn.0047d580
mov byte [esp + 0x1324], 0xc
mov esi, dword [esp + 0x44]
test esi, esi
je 0x47538f
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 0x475380
lea ecx, [esp + 0xa9c]
push ecx
mov byte [esp + 0x1328], 0xb
call fcn.00469ed0
lea ecx, [esp + 0x974]
call fcn.0043a230
lea ecx, [esp + 0x84c]
call fcn.0043a230
lea ecx, [esp + 0x3ac]
call fcn.0043a230
lea ecx, [esp + 0x724]
call fcn.0043a230
lea ecx, [esp + 0x4d4]
call fcn.0043a230
lea ecx, [esp + 0x5fc]
call fcn.0043a230
xor al, al
jmp 0x475549
push esi
lea edx, [esp + 0xaa0]
push edx
xor edx, edx
lea ecx, [esp + 0x3c]
call fcn.0046bf20
test al, al
jne 0x475417
push 0x52dc8c
mov ecx, esi
call fcn.00402960
lea eax, [esp + 0x29c]
push eax
mov byte [esp + 0x1328], bl
call fcn.0047d580
lea ecx, [esp + 0x4c]
push ecx
mov byte [esp + 0x1328], 0xd
call fcn.0047d580
mov byte [esp + 0x1324], 0xc
mov esi, dword [esp + 0x44]
test esi, esi
je 0x475460
mov edi, dword [esp + 0x40]
mov eax, esi
mov esi, dword [esi + 4]
push eax
call edi
add esp, 4
test esi, esi
jne 0x475451
lea edx, [esp + 0xa9c]
push edx
mov byte [esp + 0x1328], 0xb
call fcn.00469ed0
mov esi, vtable.t_str.0
cmp byte [esp + 0xa90], 0
mov dword [esp + 0x974], esi
jne 0x4754a6
mov eax, dword [esp + 0x97c]
lea ecx, [esp + 0x980]
cmp eax, ecx
je 0x4754a6
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x968], 0
mov dword [esp + 0x84c], esi
jne 0x4754d2
mov eax, dword [esp + 0x854]
lea edx, [esp + 0x858]
cmp eax, edx
je 0x4754d2
push eax
call fcn.004ccef0
add esp, 4
lea ecx, [esp + 0x3ac]
call fcn.0043a230
lea ecx, [esp + 0x724]
call fcn.0043a230
cmp byte [esp + 0x5f0], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x4d4], esi
jne 0x47551b
mov eax, dword [esp + 0x4dc]
lea ecx, [esp + 0x4e0]
cmp eax, ecx
je 0x47551b
push eax
call fcn.004ccef0
add esp, 4
cmp byte [esp + 0x718], 0
mov dword [esp + 0x5fc], esi
jne 0x475547
mov eax, dword [esp + 0x604]
lea edx, [esp + 0x608]
cmp eax, edx
je 0x475547
push eax
call fcn.004ccef0
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.004ccee1
add esp, 0x1314
ret 4