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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61e2f5
mov eax, dword fs:[0]
push eax
sub esp, 0x660
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x84], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x65c], ecx
mov ecx, dword [ebp - 0x65c]
call fcn.005c4bed
mov eax, dword [ebp - 0x65c]
push eax
call fcn.005acd80
mov ecx, eax
call fcn.005add90
mov ecx, dword [ebp - 0x65c]
add ecx, 0x19c4
call fcn.00476d50
mov ecx, dword [ebp - 0x65c]
add ecx, 0x78
call fcn.0051c9a0
lea ecx, [ebp - 0x650]
push ecx
call fcn.005acd80
mov ecx, eax
call fcn.005aceb0
mov dword [ebp - 0x660], eax
mov edx, dword [ebp - 0x660]
mov dword [ebp - 0x664], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x664]
call fcn.00587e90
push eax
mov ecx, dword [ebp - 0x65c]
add ecx, 0x78
call fcn.0051c810
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x650]
call fcn.00401620
push 0
push 0
mov ecx, dword [ebp - 0x65c]
add ecx, 0x78
call fcn.0051c850
push 0
push 1
mov ecx, dword [ebp - 0x65c]
add ecx, 0x78
call fcn.0051c850
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x64], 0
jmp 0x46ba96
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x90
jge 0x46bbec
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x65c]
add ecx, 0x78
call fcn.0051c6c0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x65c]
add ecx, 0xd0
call fcn.005a45a0
push str.video.bmp
push 0x6504b8
call fcn.0041b910
add eax, 4
push eax
lea ecx, [ebp - 0x654]
push ecx
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x668], eax
mov edx, dword [ebp - 0x668]
mov dword [ebp - 0x66c], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00404260
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x654]
call fcn.00401620
lea ecx, [ebp - 0x68]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0xffffffff
je 0x46bbd8
mov dword [ebp - 0x70], 0
push 0x5c8
push 0
lea edx, [ebp - 0x64c]
push edx
call fcn.005e5330
add esp, 0xc
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x64c]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x65c]
add ecx, 0xcc
call fcn.00467d60
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x65c]
add ecx, 0xcc
call fcn.00467cb0
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jle 0x46bbbd
cmp dword [ebp - 0x74], 0
jne 0x46bbd8
lea ecx, [ebp - 0x68]
call fcn.00587e90
push eax
mov edx, dword [ebp - 0x64]
push edx
mov ecx, dword [ebp - 0x65c]
add ecx, 0x78
call fcn.0051ca00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401620
jmp 0x46ba8d
mov eax, dword [ebp - 0x65c]
push eax
push 1
mov ecx, dword [ebp - 0x65c]
add ecx, 0xcc
call fcn.00462e30
mov ecx, dword [ebp - 0x65c]
push ecx
push 0x4691d0
mov ecx, dword [ebp - 0x65c]
add ecx, 0xcc
call fcn.004664b0
lea ecx, [ebp - 0x60]
call fcn.00514f40
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x60]
call fcn.00515130
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x46bc56
push 0
push 1
push 0x10
mov ecx, dword [ebp - 0x65c]
call fcn.0046b350
jmp 0x46bc69
push 0
push 1
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x65c]
call fcn.0046b350
mov eax, dword [ebp - 0x65c]
push eax
push 0x68
mov ecx, dword [ebp - 0x65c]
add ecx, 0xaeb0
mov edx, dword [ebp - 0x65c]
mov eax, dword [edx + 0xaeb0]
mov edx, dword [eax + 0x134]
call edx
push 0
mov ecx, dword [ebp - 0x65c]
add ecx, 0xaeb0
call fcn.005cb0bc
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x65c]
add ecx, 0xaeb0
call fcn.0040bb00
mov dword [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x65c]
call fcn.0040bb00
mov dword [ebp - 0x54], 0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x24]
sub ecx, eax
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x65c]
call fcn.005cbf94
push 1
lea ecx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x65c]
add ecx, 0xaeb0
call fcn.00422850
mov edx, dword [ebp - 0x65c]
push edx
push 0x69
mov ecx, dword [ebp - 0x65c]
add ecx, 0xc058
mov eax, dword [ebp - 0x65c]
mov edx, dword [eax + 0xc058]
mov eax, dword [edx + 0x134]
call eax
push 0
mov ecx, dword [ebp - 0x65c]
add ecx, 0xc058
call fcn.005cb0bc
mov dword [ebp - 0x44], 0
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x44]
push edx
mov ecx, dword [ebp - 0x65c]
add ecx, 0xc058
call fcn.0040bb00
push 0x10
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.005e5330
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x65c]
call fcn.0040bb00
push 0x10
push 0
lea edx, [ebp - 0x54]
push edx
call fcn.005e5330
add esp, 0xc
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 0x44]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x44]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x28]
sub ecx, eax
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x24]
sub eax, edx
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x48], ecx
lea edx, [ebp - 0x54]
push edx
mov ecx, dword [ebp - 0x65c]
call fcn.005cbf94
push 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x65c]
add ecx, 0xc058
call fcn.00422850
mov ecx, dword [ebp - 0x65c]
mov dword [ecx + 0x19d8], 0x46ae10
mov edx, dword [ebp - 0x65c]
mov dword [edx + 0x19d0], 0x46adb0
mov eax, dword [ebp - 0x65c]
mov dword [eax + 0x19d4], 0x46add0
mov ecx, dword [ebp - 0x65c]
mov byte [ecx + 0xaeac], 0
mov ecx, dword [ebp - 0x65c]
call fcn.00469370
push 1
mov ecx, dword [ebp - 0x65c]
call fcn.0046e7f0
push 0
push 0xbb8
push 1
mov ecx, dword [ebp - 0x65c]
call fcn.004168b0
mov ecx, dword [ebp - 0x65c]
call fcn.0046bf40
push 0
push 0x2710
push 9
mov ecx, dword [ebp - 0x65c]
call fcn.004168b0
mov edx, dword [ebp - 0x65c]
mov dword [0x6d8030], edx
mov dword [ebp - 0x658], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00515010
mov eax, dword [ebp - 0x658]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x84]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret