Function at 0x418c60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46aaa2
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x190
mov byte [eax], 1
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, dword [esi + 0x148]
cmp ecx, ebx
jne 0x418caa
mov ecx, dword [esp + 0x1b8]
push str.No_source.
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4194a1
lea edx, [esp + 0x14]
push ebx
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x44], ebx
mov eax, dword [ecx]
lea edx, [esp + 0x44]
push 4
push edx
call dword [eax + 4]
test al, al
je 0x419490
cmp dword [esp + 0x14], 4
jne 0x419490
cmp dword [esp + 0x3c], 0x6d27e59b
je 0x418cf4
mov ecx, dword [esp + 0x1b8]
push str.File_marker_is_invalid.
mov eax, dword [ecx]
jmp 0x41949e
mov ecx, dword [esi + 0x148]
lea eax, [esp + 0x14]
push ebx
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x1b]
push 1
push eax
call dword [edx + 4]
test al, al
jne 0x418d26
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_get_entry_type.
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4194a1
mov al, byte [esp + 0x13]
test al, al
jne 0x418d46
mov ecx, dword [esp + 0x1b8]
push str.Found_end_of_archive.
mov eax, dword [ecx]
call dword [eax + 0x10]
mov al, 1
jmp 0x4194a3
mov ecx, dword [esi + 0x148]
lea eax, [esp + 0x14]
push ebx
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
push 2
push eax
call dword [edx + 4]
test al, al
je 0x41947d
mov eax, dword [esp + 0x24]
cmp ax, bx
je 0x41947d
and eax, 0xffff
push eax
lea ebp, [eax + 5]
call fcn.0045d8e0
mov ecx, dword [esi + 0x148]
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [esp + 0x2c]
and eax, 0xffff
push eax
push edi
call dword [edx + 4]
test al, al
jne 0x418dc5
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_get_filename
mov edx, dword [ecx]
call dword [edx + 0x10]
push edi
call fcn.0045cfdf
add esp, 4
jmp 0x4194a1
lea ecx, [esp + 0x58]
call fcn.00416ed0
mov al, byte [esi + 0x14c]
mov dword [esp + 0x1a8], ebx
test al, al
je 0x418e65
lea ecx, [esp + 0x40]
call fcn.00422840
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
and eax, 0xffff
mov byte [esp + 0x1a8], 1
push eax
push edi
call fcn.00423270
lea ecx, [esp + 0x74]
call fcn.00422840
mov ebx, dword [esp + 0x1b8]
lea ecx, [esp + 0x74]
push ebx
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esi + 4]
mov byte [esp + 0x1b4], 2
call fcn.004466e0
lea eax, [esp + 0x74]
lea ecx, [esp + 0x58]
push eax
call fcn.004166e0
lea ecx, [esp + 0x74]
mov byte [esp + 0x1a8], 1
call fcn.00422f50
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 0
call fcn.00422f50
jmp 0x418e81
mov ecx, dword [esp + 0x24]
and ecx, 0xffff
push ecx
push edi
lea ecx, [esp + 0x60]
call fcn.00416c60
mov ebx, dword [esp + 0x1b8]
push edi
call fcn.0045cfdf
mov ecx, dword [esi + 0x148]
add esp, 4
lea eax, [esp + 0x14]
add ebp, 0xc
mov edx, dword [ecx]
push 0
push eax
lea eax, [esp + 0xac]
push 8
push eax
call dword [edx + 4]
test al, al
jne 0x418ebe
mov edx, dword [ebx]
push str.Failed_to_get_filetime
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x4190c3
lea eax, [esp + 0x2c]
lea ecx, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esi + 0x148]
lea eax, [esp + 0x14]
push 0
push eax
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push 4
push eax
call dword [edx + 4]
test al, al
jne 0x418eff
mov edx, dword [ebx]
push str.Failed_to_get_file_attributes
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x4190c3
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x418fc2
push ebx
lea ecx, [esp + 0x5c]
call fcn.00422700
push eax
call fcn.0041e670
add esp, 8
test al, al
jne 0x418f33
mov eax, dword [ebx]
push str.Failed_to_ensure_directory_exists.
mov ecx, ebx
call dword [eax + 0x10]
jmp 0x4190c3
lea ecx, [esp + 0x140]
call fcn.00419d20
lea ecx, [esp + 0x58]
mov byte [esp + 0x1a8], 3
call fcn.00422700
push eax
lea ecx, [esp + 0x144]
call fcn.00419f90
lea ecx, [esp + 0x140]
push 0
push ecx
call fcn.0041bda0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x418f97
lea edx, [esp + 0x2c]
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
push esi
call fcn.0043cf40
add esp, 8
mov ecx, dword [esp + 0x1b4]
test ecx, ecx
je 0x418fa9
mov edx, dword [ecx]
push ebp
push ebp
call dword [edx + 4]
lea ecx, [esp + 0x140]
mov byte [esp + 0x1a8], 0
call fcn.00419de0
jmp 0x41945b
cmp al, 2
jne 0x41945b
lea ecx, [esp + 0xac]
call fcn.00416ed0
lea eax, [esp + 0xac]
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b0], 4
call fcn.00422700
push eax
call fcn.0041e5e0
add esp, 0xc
test al, al
jne 0x41900f
mov edx, dword [ebx]
push str.Failed_to_ensure_file_can_be_created.
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x4190af
lea ecx, [esp + 0xc8]
call fcn.00419d20
lea ecx, [esp + 0x58]
mov byte [esp + 0x1a8], 5
call fcn.00422700
push eax
lea ecx, [esp + 0xcc]
call fcn.00419f90
mov al, byte [esp + 0x38]
push ebx
test al, 2
je 0x419054
lea eax, [esp + 0xcc]
push eax
call fcn.0041b720
add esp, 8
jmp 0x419066
lea ecx, [esp + 0xcc]
push ecx
push 0x47
call fcn.0041b540
add esp, 0xc
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ebx
jne 0x4190ff
push str.Thumbs.db
lea ecx, [esp + 0xcc]
call fcn.0041a6c0
test al, al
jne 0x4190dc
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_open_file.
mov edx, dword [ecx]
call dword [edx + 0x10]
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1a8], 4
call fcn.00419de0
lea ecx, [esp + 0xac]
mov byte [esp + 0x1a8], 0
call fcn.004171c0
lea ecx, [esp + 0x58]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004171c0
jmp 0x4194a1
push 4
call fcn.0045d8e0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1a8], 6
je 0x419125
mov ecx, eax
call fcn.0043fce0
jmp 0x419127
push 0x20
call fcn.0045d8e0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1a8], 7
je 0x419125
push 0
push ebx
mov ecx, eax
call fcn.00440090
jmp 0x419127
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a8], 5
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
call fcn.004467d0
lea ecx, [esp + 0x128]
mov byte [esp + 0x1a8], 8
call fcn.00422840
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 9
call fcn.00422840
push 0x1f4240
lea ecx, [esp + 0x44]
mov byte [esp + 0x1ac], 0xa
call fcn.00422fc0
mov edi, dword [esp + 0x1b4]
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x20]
push 0
push edx
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push 4
push edx
mov byte [esp + 0x22], 1
add ebp, 4
call dword [eax + 4]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x419373
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4193ae
test eax, 0x80000000
je 0x4191d6
and eax, 0x7fffffff
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], eax
cmp eax, 0x1f4240
jae 0x419386
mov ecx, dword [esi + 0x148]
lea ebx, [esp + 0x20]
push 0
push ebx
mov edx, dword [ecx]
push eax
mov eax, dword [esi + 0x170]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp ecx, eax
jne 0x419399
lea ecx, [esp + 0x8c]
call fcn.00422840
mov al, byte [esi + 0x14c]
mov bl, 0xb
test al, al
mov byte [esp + 0x1a8], bl
je 0x419288
lea ecx, [esp + 0x74]
call fcn.00422840
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x170]
push edx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b0], 0xc
call fcn.004230a0
mov ecx, dword [esp + 0x1b8]
lea edx, [esp + 0x8c]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
lea ecx, [esi + 4]
call fcn.004466e0
lea ecx, [esp + 0x74]
call fcn.004227e0
lea ecx, [esp + 0x74]
mov byte [esp + 0x1a8], bl
call fcn.00422f50
jmp 0x4192a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x170]
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.004230a0
mov al, byte [esp + 0x12]
test al, al
je 0x419306
lea ecx, [esp + 0x40]
call fcn.004226d0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00446df0
lea ecx, [esp + 0x40]
call fcn.004226e0
push eax
push 1
lea ecx, [esp + 0x48]
call fcn.00422700
mov ecx, dword [esp + 0x24]
push eax
call fcn.0043fd50
test edi, edi
je 0x419340
mov ebx, dword [edi]
lea ecx, [esp + 0x40]
call fcn.004226e0
mov edx, dword [esp + 0x18]
add eax, ebp
add edx, ebp
push eax
push edx
mov ecx, edi
call dword [ebx + 4]
jmp 0x41933e
push 1
lea ecx, [esp + 0x90]
call fcn.004226e0
push eax
lea ecx, [esp + 0x94]
call fcn.00422700
mov ecx, dword [esp + 0x24]
push eax
call fcn.0043fd50
test edi, edi
je 0x419340
mov eax, dword [esp + 0x18]
mov edx, dword [edi]
add eax, ebp
mov ecx, edi
push eax
push eax
call dword [edx + 4]
xor ebp, ebp
mov al, byte [esi + 0x14c]
test al, al
jne 0x419356
lea ecx, [esp + 0x8c]
call fcn.004227e0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1a8], 0xa
call fcn.00422f50
mov ebx, dword [esp + 0x28]
jmp 0x419188
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_read_compressed_size.
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x4193ae
mov ecx, dword [esp + 0x1b8]
push str.Too_much_data.
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4193ae
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_read_compressed_data.
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4193bd
mov edx, dword [ecx]
push 1
call dword [edx + 8]
cmp ebx, 0xffffffff
je 0x4193fd
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push 0
push ebx
call fcn.0043cf40
mov eax, dword [esp + 0x40]
add esp, 8
cmp eax, 0x20
je 0x4193fd
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.0041c500
add esp, 8
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 9
call fcn.00422f50
lea ecx, [esp + 0x128]
mov byte [esp + 0x1a8], 8
call fcn.00422f50
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a8], 5
call fcn.00446800
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1a8], 4
call fcn.00419de0
lea ecx, [esp + 0xac]
mov byte [esp + 0x1a8], 0
call fcn.004171c0
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x1a8], 0xffffffff
mov byte [ecx], 0
lea ecx, [esp + 0x58]
call fcn.004171c0
mov al, 1
jmp 0x4194a3
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_get_filename_length
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x4194a1
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_find_file_marker
mov eax, dword [ecx]
call dword [eax + 0x10]
xor al, al
mov ecx, dword [esp + 0x1a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x19c
ret 0xc