Function at 0x472351
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537c93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xaf8
mov dword [ebp - 0xaec], ecx
lea ecx, [ebp - 0x24]
call fcn.004045e5
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.004893c1
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004fa680
add esp, 4
mov edx, dword [ebp + 8]
lea eax, [edx + eax + 1]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
jne 0x4726aa
lea ecx, [ebp - 0x34]
call fcn.00404fc0
push eax
call sub.multiimgtiff.dll_IsMultiImgTiffFile
test eax, eax
je 0x472629
lea ecx, [ebp - 0x34]
call fcn.00409600
push eax
lea eax, [ebp - 0x338]
push eax
call fcn.004fa590
add esp, 8
push 0x2e
lea ecx, [ebp - 0x338]
push ecx
call fcn.00404fa0
add esp, 8
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x138]
add eax, 1
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov byte [ecx], 0
lea edx, [ebp - 0x44c]
push edx
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x54c]
push ecx
lea edx, [ebp - 0x554]
push edx
lea ecx, [ebp - 0x34]
call fcn.00409600
push eax
call fcn.004f9ec5
add esp, 0x14
lea eax, [ebp - 0x338]
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
je 0x47246b
lea ecx, [ebp - 0x338]
push ecx
call fcn.00428ac3
add esp, 4
lea edx, [ebp - 0x338]
push edx
call fcn.0042590c
add esp, 4
lea eax, [ebp - 0x338]
push eax
lea ecx, [ebp - 0x348]
call fcn.004893c1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x348]
call fcn.00489719
lea edx, [ebp - 0x44c]
push edx
lea ecx, [ebp - 0x348]
call fcn.00489719
lea ecx, [ebp - 0x348]
call fcn.00404fc0
push eax
lea ecx, [ebp - 0x34]
call fcn.00404fc0
push eax
call sub.multiimgtiff.dll_Multi2SingleTiff
mov dword [ebp - 0x550], eax
mov dword [ebp - 0x34c], 1
jmp 0x4724ef
mov eax, dword [ebp - 0x34c]
add eax, 1
mov dword [ebp - 0x34c], eax
mov ecx, dword [ebp - 0x34c]
cmp ecx, dword [ebp - 0x550]
jg 0x472618
lea edx, [ebp - 0x338]
push edx
lea ecx, [ebp - 0x564]
call fcn.004893c1
mov byte [ebp - 4], 3
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x564]
call fcn.00489719
push 0x560c50
lea ecx, [ebp - 0x564]
call fcn.00489719
push 0xa
lea ecx, [ebp - 0x54c]
push ecx
mov edx, dword [ebp - 0x34c]
push edx
call fcn.004fb5cb
add esp, 0xc
push 0x560c54
lea ecx, [ebp - 0x564]
call fcn.00489719
lea eax, [ebp - 0x54c]
push eax
lea ecx, [ebp - 0x564]
call fcn.00489719
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x564]
call fcn.00489719
push 0x208
call fcn.005142b0
add esp, 4
mov dword [ebp - 0xabc], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xabc], 0
je 0x4725b8
mov ecx, dword [ebp - 0xabc]
call fcn.004044d0
mov dword [ebp - 0xaf0], eax
jmp 0x4725c2
mov dword [ebp - 0xaf0], 0
mov edx, dword [ebp - 0xaf0]
mov dword [ebp - 0xab8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xab8]
mov dword [ebp - 0x568], eax
lea ecx, [ebp - 0x564]
call fcn.00409600
push eax
mov ecx, dword [ebp - 0x568]
call fcn.00404513
mov ecx, dword [ebp - 0x568]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404efa
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x564]
call fcn.00489479
jmp 0x4724e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x348]
call fcn.00489479
jmp 0x4726a5
push 0x208
call fcn.005142b0
add esp, 4
mov dword [ebp - 0xac4], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0xac4], 0
je 0x47265c
mov ecx, dword [ebp - 0xac4]
call fcn.004044d0
mov dword [ebp - 0xaf4], eax
jmp 0x472666
mov dword [ebp - 0xaf4], 0
mov edx, dword [ebp - 0xaf4]
mov dword [ebp - 0xac0], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xac0]
mov dword [ebp - 0x56c], eax
lea ecx, [ebp - 0x34]
call fcn.00409600
push eax
mov ecx, dword [ebp - 0x56c]
call fcn.00404513
mov ecx, dword [ebp - 0x56c]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00404efa
jmp 0x472a61
lea ecx, [ebp - 0x34]
call fcn.00455450
sub eax, 1
push eax
lea ecx, [ebp - 0x34]
call fcn.00476de0
movsx edx, al
cmp edx, 0x5c
je 0x4726d3
push 0x560c5c
lea ecx, [ebp - 0x34]
call fcn.00489719
lea ecx, [ebp - 0x57c]
call fcn.004892d0
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x472a52
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xad4]
push ecx
call fcn.00489e75
mov dword [ebp - 0xaf8], eax
mov edx, dword [ebp - 0xaf8]
mov dword [ebp - 0xafc], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xafc]
push eax
lea ecx, [ebp - 0x57c]
call fcn.0048954c
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xad4]
call fcn.00489479
lea ecx, [ebp - 0x57c]
call fcn.00404fc0
push eax
call sub.multiimgtiff.dll_IsMultiImgTiffFile
test eax, eax
je 0x4729b8
lea ecx, [ebp - 0x57c]
call fcn.00409600
push eax
lea ecx, [ebp - 0x880]
push ecx
call fcn.004fa590
add esp, 8
push 0x2e
lea edx, [ebp - 0x880]
push edx
call fcn.00404fa0
add esp, 8
mov dword [ebp - 0x680], eax
mov eax, dword [ebp - 0x680]
mov byte [eax], 0x5c
mov ecx, dword [ebp - 0x680]
add ecx, 1
mov dword [ebp - 0x680], ecx
mov edx, dword [ebp - 0x680]
mov byte [edx], 0
lea eax, [ebp - 0x994]
push eax
lea ecx, [ebp - 0x67c]
push ecx
lea edx, [ebp - 0xa94]
push edx
lea eax, [ebp - 0xa9c]
push eax
lea ecx, [ebp - 0x57c]
call fcn.00409600
push eax
call fcn.004f9ec5
add esp, 0x14
lea ecx, [ebp - 0x880]
push ecx
call dword [sym.imp.shlwapi.dll_PathFileExistsA]
test eax, eax
je 0x4727f7
lea edx, [ebp - 0x880]
push edx
call fcn.00428ac3
add esp, 4
lea eax, [ebp - 0x880]
push eax
call fcn.0042590c
add esp, 4
lea ecx, [ebp - 0x880]
push ecx
lea ecx, [ebp - 0x890]
call fcn.004893c1
mov byte [ebp - 4], 8
lea edx, [ebp - 0x67c]
push edx
lea ecx, [ebp - 0x890]
call fcn.00489719
lea eax, [ebp - 0x994]
push eax
lea ecx, [ebp - 0x890]
call fcn.00489719
lea ecx, [ebp - 0x890]
call fcn.00404fc0
push eax
lea ecx, [ebp - 0x57c]
call fcn.00404fc0
push eax
call sub.multiimgtiff.dll_Multi2SingleTiff
mov dword [ebp - 0xa98], eax
mov dword [ebp - 0x894], 1
jmp 0x47287e
mov ecx, dword [ebp - 0x894]
add ecx, 1
mov dword [ebp - 0x894], ecx
mov edx, dword [ebp - 0x894]
cmp edx, dword [ebp - 0xa98]
jg 0x4729a7
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0xaac]
call fcn.004893c1
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0xaac]
call fcn.00489719
push 0x560c60
lea ecx, [ebp - 0xaac]
call fcn.00489719
push 0xa
lea edx, [ebp - 0xa94]
push edx
mov eax, dword [ebp - 0x894]
push eax
call fcn.004fb5cb
add esp, 0xc
push 0x560c64
lea ecx, [ebp - 0xaac]
call fcn.00489719
lea ecx, [ebp - 0xa94]
push ecx
lea ecx, [ebp - 0xaac]
call fcn.00489719
lea edx, [ebp - 0x994]
push edx
lea ecx, [ebp - 0xaac]
call fcn.00489719
push 0x208
call fcn.005142b0
add esp, 4
mov dword [ebp - 0xadc], eax
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0xadc], 0
je 0x472947
mov ecx, dword [ebp - 0xadc]
call fcn.004044d0
mov dword [ebp - 0xb00], eax
jmp 0x472951
mov dword [ebp - 0xb00], 0
mov eax, dword [ebp - 0xb00]
mov dword [ebp - 0xad8], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0xad8]
mov dword [ebp - 0xab0], ecx
lea ecx, [ebp - 0xaac]
call fcn.00409600
push eax
mov ecx, dword [ebp - 0xab0]
call fcn.00404513
mov edx, dword [ebp - 0xab0]
push edx
lea ecx, [ebp - 0x24]
call fcn.00404efa
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xaac]
call fcn.00489479
jmp 0x47286f
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x890]
call fcn.00489479
jmp 0x472a37
push 0x208
call fcn.005142b0
add esp, 4
mov dword [ebp - 0xae4], eax
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0xae4], 0
je 0x4729eb
mov ecx, dword [ebp - 0xae4]
call fcn.004044d0
mov dword [ebp - 0xb04], eax
jmp 0x4729f5
mov dword [ebp - 0xb04], 0
mov eax, dword [ebp - 0xb04]
mov dword [ebp - 0xae0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xae0]
mov dword [ebp - 0xab4], ecx
lea ecx, [ebp - 0x57c]
call fcn.00409600
push eax
mov ecx, dword [ebp - 0xab4]
call fcn.00404513
mov edx, dword [ebp - 0xab4]
push edx
lea ecx, [ebp - 0x24]
call fcn.00404efa
mov eax, dword [ebp + 8]
push eax
call fcn.004fa680
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 1]
mov dword [ebp + 8], edx
jmp 0x4726e2
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x57c]
call fcn.00489479
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0xaec]
add ecx, 0xa08
call fcn.00478bbb
push 1
mov ecx, dword [ebp - 0xaec]
add ecx, 0xa08
call fcn.0045e480
mov dword [ebp - 0xae8], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00489479
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00404638
mov eax, dword [ebp - 0xae8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8