Function at 0x404692
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53452a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x764
mov dword [ebp - 0x768], ecx
cmp dword [ebp + 8], 0
jne 0x4046c3
xor eax, eax
jmp 0x404b4d
push 0x55d378
mov eax, dword [ebp + 8]
push eax
call fcn.004fa0f6
add esp, 8
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4046ea
xor eax, eax
jmp 0x404b4d
mov ecx, dword [ebp - 0x768]
call fcn.00404f13
mov ecx, dword [ebp - 0x768]
mov dword [ecx + 0x14], 0
mov dword [ebp - 0x210], 0
mov edx, dword [ebp - 0x218]
push edx
push 0x200
lea eax, [ebp - 0x20c]
push eax
call fcn.004fa6fb
add esp, 0xc
test eax, eax
je 0x404b39
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004fa680
add esp, 4
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 2
jge 0x40474f
jmp 0x40470c
mov edx, dword [ebp - 0x21c]
movsx eax, byte [ebp + edx - 0x20d]
cmp eax, 0xa
jne 0x40477f
mov ecx, dword [ebp - 0x21c]
sub ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
mov byte [ebp + edx - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp - 0x768]
call fcn.00404680
test eax, eax
jne 0x40479a
jmp 0x40470c
mov ecx, dword [ebp - 0x21c]
movsx edx, byte [ebp + ecx - 0x20d]
cmp edx, 0x3f
jne 0x4047d9
mov eax, dword [ebp - 0x21c]
sub eax, 1
mov dword [ebp - 0x21c], eax
mov ecx, dword [ebp - 0x21c]
mov byte [ebp + ecx - 0x20c], 0
mov edx, dword [ebp - 0x768]
mov eax, dword [ebp - 0x210]
mov dword [edx + 0x14], eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.multiimgtiff.dll_IsMultiImgTiffFile
test eax, eax
je 0x404aa2
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x520]
push eax
call fcn.004fa590
add esp, 8
push 0x2e
lea ecx, [ebp - 0x520]
push ecx
call fcn.00404fa0
add esp, 8
mov dword [ebp - 0x320], eax
mov edx, dword [ebp - 0x320]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x320]
add eax, 1
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
mov byte [ecx], 0
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x734]
push ecx
lea edx, [ebp - 0x73c]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004f9ec5
add esp, 0x14
lea ecx, [ebp - 0x520]
push ecx
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
je 0x404886
lea edx, [ebp - 0x520]
push edx
call fcn.00428ac3
add esp, 4
lea eax, [ebp - 0x520]
push eax
call fcn.0042590c
add esp, 4
lea ecx, [ebp - 0x520]
push ecx
lea ecx, [ebp - 0x530]
call fcn.004893c1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x530]
call fcn.00489719
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x530]
call fcn.00489719
lea ecx, [ebp - 0x530]
call fcn.00404fc0
push eax
lea ecx, [ebp - 0x20c]
push ecx
call sub.multiimgtiff.dll_Multi2SingleTiff
mov dword [ebp - 0x738], eax
mov dword [ebp - 0x534], 1
jmp 0x40490b
mov edx, dword [ebp - 0x534]
add edx, 1
mov dword [ebp - 0x534], edx
mov eax, dword [ebp - 0x534]
cmp eax, dword [ebp - 0x738]
jg 0x404a8b
lea ecx, [ebp - 0x520]
push ecx
lea ecx, [ebp - 0x74c]
call fcn.004893c1
mov byte [ebp - 4], 1
lea edx, [ebp - 0x31c]
push edx
lea ecx, [ebp - 0x74c]
call fcn.00489719
push 0x55d37c
lea ecx, [ebp - 0x74c]
call fcn.00489719
push 0xa
lea eax, [ebp - 0x734]
push eax
mov ecx, dword [ebp - 0x534]
push ecx
call fcn.004fb5cb
add esp, 0xc
lea edx, [ebp - 0x734]
push edx
call fcn.004fa680
add esp, 4
mov dword [ebp - 0x754], eax
mov dword [ebp - 0x750], 0
jmp 0x40499d
mov eax, dword [ebp - 0x750]
add eax, 1
mov dword [ebp - 0x750], eax
mov ecx, 5
sub ecx, dword [ebp - 0x754]
cmp dword [ebp - 0x750], ecx
jge 0x4049c2
push 0x55d380
lea ecx, [ebp - 0x74c]
call fcn.00489719
jmp 0x40498e
lea edx, [ebp - 0x734]
push edx
lea ecx, [ebp - 0x74c]
call fcn.00489719
lea eax, [ebp - 0x634]
push eax
lea ecx, [ebp - 0x74c]
call fcn.00489719
push 0x208
call fcn.005142b0
add esp, 4
mov dword [ebp - 0x75c], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x75c], 0
je 0x404a19
mov ecx, dword [ebp - 0x75c]
call fcn.004044d0
mov dword [ebp - 0x76c], eax
jmp 0x404a23
mov dword [ebp - 0x76c], 0
mov ecx, dword [ebp - 0x76c]
mov dword [ebp - 0x758], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x758]
mov dword [ebp - 0x214], edx
lea ecx, [ebp - 0x74c]
call fcn.00409600
push eax
mov ecx, dword [ebp - 0x214]
call fcn.00404513
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x768]
call fcn.00405240
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74c]
call fcn.00489479
jmp 0x4048fc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x530]
call fcn.00489479
jmp 0x404b34
push 0x208
call fcn.005142b0
add esp, 4
mov dword [ebp - 0x764], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x764], 0
je 0x404ad8
mov ecx, dword [ebp - 0x764]
call fcn.004044d0
mov dword [ebp - 0x770], eax
jmp 0x404ae2
mov dword [ebp - 0x770], 0
mov edx, dword [ebp - 0x770]
mov dword [ebp - 0x760], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x760]
mov dword [ebp - 0x214], eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x214]
call fcn.00404513
lea edx, [ebp - 0x214]
push edx
mov ecx, dword [ebp - 0x768]
call fcn.00405240
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
jmp 0x40470c
mov ecx, dword [ebp - 0x218]
push ecx
call fcn.004fa00c
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4