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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff8b2
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x69ee98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp - 0x94]
call fcn.0043ed60
mov dword [ebp - 0x94], vtable.PLWinBmpEx.0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0xdc]
mov dword [ebp - 4], 0
call fcn.0043ed60
mov dword [ebp - 0xdc], vtable.PLWinBmpEx.0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
push 0x28
mov byte [ebp - 4], 2
call fcn.00488616
add esp, 4
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x409edd
push 0
mov ecx, eax
call fcn.00441600
jmp 0x409edf
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x6a95dc], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00403750
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
cmp dword [edi + 4], 0
mov dword [ebp - 0x18], 0
jle 0x409f2c
push 0x5c
push esi
call fcn.005e0991
add esp, 8
test eax, eax
je 0x409f2c
sub eax, esi
cmp eax, 0xffffffff
jne 0x409f96
mov ecx, dword [ebx + 0x1c]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x409f8d
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x409f7e
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x409f7e
push edx
call fcn.00403750
add esp, 4
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x409f76
mov edi, dword [edi]
push dword [ebp - 0x20]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x409f8d
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004038a0
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x409faa
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov edi, dword [0x6a95dc]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 0x1c]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov edi, dword [0x6a95dc]
push dword [ebp - 0x18]
mov eax, dword [edi]
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
push dword [0x6a95dc]
mov ecx, 0x6c7750
call fcn.00440690
push dword [0x6a95dc]
mov ecx, 0x6c7750
call fcn.0043f810
push 0x20
lea eax, [ebp - 0x94]
mov ecx, 0x6c7750
push eax
call fcn.00440040
mov ecx, 0x6c7750
call fcn.0043f7b0
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x94]
push 0x20
push eax
mov dword [0x6a95dc], 0
call fcn.00440ea0
mov eax, dword [ebx + 0x20]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x28], eax
sub esp, 0x10
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov eax, dword [0x6c77a8]
mov dword [ecx], eax
mov eax, dword [0x6c77ac]
mov dword [ecx + 4], eax
mov eax, dword [0x6c77b0]
mov dword [ecx + 8], eax
mov eax, dword [0x6c77b4]
mov dword [ecx + 0xc], eax
mov eax, esp
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], esi
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
call fcn.004075f0
fstp qword [ebp - 0x34]
fild dword [ebp - 0x20]
add esp, 0x20
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [ebp - 0x34]
call fcn.005d5370
wait
mov edi, eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fmul qword [ebp - 0x34]
call fcn.005d5370
wait
mov ecx, dword [0x6c77b0]
mov esi, eax
sub ecx, dword [0x6c77a8]
cmp edi, ecx
jle 0x40a0d6
mov edi, ecx
mov eax, dword [0x6c77b4]
mov edx, eax
sub edx, dword [0x6c77ac]
cmp esi, edx
jle 0x40a0e9
mov esi, edx
cmp ecx, edi
jle 0x40a0fe
sub ecx, edi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebx + 4], eax
mov eax, dword [0x6c77b4]
sub eax, dword [0x6c77ac]
cmp eax, esi
jle 0x40a111
sub eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebx], eax
cmp dword [ebx + 0x18], 8
mov dword [ebx + 0x10], 0
jg 0x40a1b5
push 0x20
push dword [ebp - 0x28]
lea ecx, [ebp - 0xdc]
call fcn.00440ea0
mov eax, dword [ebx + 0x20]
cmp edi, dword [eax + 4]
je 0x40a168
cmp esi, dword [eax + 8]
je 0x40a168
push esi
push edi
lea ecx, [ebp - 0x40]
call fcn.00441910
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0xdc]
call fcn.00440df0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
call fcn.004424d0
push 2
push 2
lea ecx, [ebp - 0x94]
call fcn.004411b0
push 8
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00440ea0
mov ecx, dword [ebx + 0x20]
lea eax, [ebp - 0x94]
push 8
push eax
call fcn.00440ea0
mov esi, dword [ebx + 0x20]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40a1b0
mov ecx, esi
call fcn.0043ec80
mov dword [esi + 0x40], eax
mov dword [ebx + 0x10], eax
jmp 0x40a1d7
push esi
push edi
lea ecx, [ebp - 0x4c]
call fcn.00441910
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 6
mov ecx, dword [ebx + 0x20]
push eax
call fcn.00440df0
lea ecx, [ebp - 0x4c]
call fcn.004424d0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0x34], 1
add ecx, 0xfffffff0
mov dword [ebx + 0x30], 1
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40a210
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x613aec]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xdc], vtable.PLWinBmpEx.0
test eax, eax
je 0x40a22b
push eax
call dword [sym.imp.MSVFW32.dll_DrawDibClose]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x40a23c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0xdc]
call fcn.0043ef10
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x94], vtable.PLWinBmpEx.0
test eax, eax
je 0x40a25f
push eax
call dword [sym.imp.MSVFW32.dll_DrawDibClose]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x40a26d
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x94]
call fcn.0043ef10
xor eax, eax
jmp 0x40a351
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005d4ba5
mov esp, ebp
pop ebp
ret