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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d0c2
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 0x4164da
mov ecx, dword [esp + 0x1b8]
push str.No_source.
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x416cd1
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 0x416cc0
cmp dword [esp + 0x14], 4
jne 0x416cc0
cmp dword [esp + 0x3c], 0x6d27e59b
je 0x416524
mov ecx, dword [esp + 0x1b8]
push str.File_marker_is_invalid.
mov eax, dword [ecx]
jmp 0x416cce
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 0x416556
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_get_entry_type.
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x416cd1
mov al, byte [esp + 0x13]
test al, al
jne 0x416576
mov ecx, dword [esp + 0x1b8]
push str.Found_end_of_archive.
mov eax, dword [ecx]
call dword [eax + 0x10]
mov al, 1
jmp 0x416cd3
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 0x416cad
mov eax, dword [esp + 0x24]
cmp ax, bx
je 0x416cad
and eax, 0xffff
push eax
lea ebp, [eax + 5]
call fcn.0045d5c0
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 0x4165f5
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_get_filename
mov edx, dword [ecx]
call dword [edx + 0x10]
push edi
call fcn.0045ccbf
add esp, 4
jmp 0x416cd1
lea ecx, [esp + 0x58]
call fcn.004146b0
mov al, byte [esi + 0x14c]
mov dword [esp + 0x1a8], ebx
test al, al
je 0x416695
lea ecx, [esp + 0x40]
call fcn.0041c140
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
and eax, 0xffff
mov byte [esp + 0x1a8], 1
push eax
push edi
call fcn.0041cba0
lea ecx, [esp + 0x74]
call fcn.0041c140
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.00446640
lea eax, [esp + 0x74]
lea ecx, [esp + 0x58]
push eax
call fcn.00413eb0
lea ecx, [esp + 0x74]
mov byte [esp + 0x1a8], 1
call fcn.0041c880
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 0
call fcn.0041c880
jmp 0x4166b1
mov ecx, dword [esp + 0x24]
and ecx, 0xffff
push ecx
push edi
lea ecx, [esp + 0x60]
call fcn.00414430
mov ebx, dword [esp + 0x1b8]
push edi
call fcn.0045ccbf
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 0x4166ee
mov edx, dword [ebx]
push str.Failed_to_get_filetime
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x4168f3
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 0x41672f
mov edx, dword [ebx]
push str.Failed_to_get_file_attributes
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x4168f3
mov al, byte [esp + 0x13]
cmp al, 1
jne 0x4167f2
push ebx
lea ecx, [esp + 0x5c]
call fcn.00443b00
push eax
call fcn.0041d230
add esp, 8
test al, al
jne 0x416763
mov eax, dword [ebx]
push str.Failed_to_ensure_directory_exists.
mov ecx, ebx
call dword [eax + 0x10]
jmp 0x4168f3
lea ecx, [esp + 0x140]
call fcn.00417560
lea ecx, [esp + 0x58]
mov byte [esp + 0x1a8], 3
call fcn.00443b00
push eax
lea ecx, [esp + 0x144]
call fcn.004177d0
lea ecx, [esp + 0x140]
push 0
push ecx
call fcn.00419810
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4167c7
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.0043ca40
add esp, 8
mov ecx, dword [esp + 0x1b4]
test ecx, ecx
je 0x4167d9
mov edx, dword [ecx]
push ebp
push ebp
call dword [edx + 4]
lea ecx, [esp + 0x140]
mov byte [esp + 0x1a8], 0
call fcn.00417620
jmp 0x416c8b
cmp al, 2
jne 0x416c8b
lea ecx, [esp + 0xac]
call fcn.004146b0
lea eax, [esp + 0xac]
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x1b0], 4
call fcn.00443b00
push eax
call fcn.0041d1a0
add esp, 0xc
test al, al
jne 0x41683f
mov edx, dword [ebx]
push str.Failed_to_ensure_file_can_be_created.
mov ecx, ebx
call dword [edx + 0x10]
jmp 0x4168df
lea ecx, [esp + 0xc8]
call fcn.00417560
lea ecx, [esp + 0x58]
mov byte [esp + 0x1a8], 5
call fcn.00443b00
push eax
lea ecx, [esp + 0xcc]
call fcn.004177d0
mov al, byte [esp + 0x38]
push ebx
test al, 2
je 0x416884
lea eax, [esp + 0xcc]
push eax
call fcn.00419090
add esp, 8
jmp 0x416896
lea ecx, [esp + 0xcc]
push ecx
push 0x47
call fcn.00418db0
add esp, 0xc
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ebx
jne 0x41692f
push str.Thumbs.db
lea ecx, [esp + 0xcc]
call fcn.00417f00
test al, al
jne 0x41690c
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.00417620
lea ecx, [esp + 0xac]
mov byte [esp + 0x1a8], 0
call fcn.004149a0
lea ecx, [esp + 0x58]
mov dword [esp + 0x1a8], 0xffffffff
call fcn.004149a0
jmp 0x416cd1
push 4
call fcn.0045d5c0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1a8], 6
je 0x416955
mov ecx, eax
call fcn.0043fa20
jmp 0x416957
push 0x20
call fcn.0045d5c0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x1a8], 7
je 0x416955
push 0
push ebx
mov ecx, eax
call fcn.0043fdd0
jmp 0x416957
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.00422380
lea ecx, [esp + 0x128]
mov byte [esp + 0x1a8], 8
call fcn.0041c140
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 9
call fcn.0041c140
push 0x1f4240
lea ecx, [esp + 0x44]
mov byte [esp + 0x1ac], 0xa
call fcn.0041c8f0
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 0x416ba3
mov eax, dword [esp + 0x18]
test eax, eax
je 0x416bde
test eax, 0x80000000
je 0x416a06
and eax, 0x7fffffff
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], eax
cmp eax, 0x1f4240
jae 0x416bb6
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 0x416bc9
lea ecx, [esp + 0x8c]
call fcn.0041c140
mov al, byte [esi + 0x14c]
mov bl, 0xb
test al, al
mov byte [esp + 0x1a8], bl
je 0x416ab8
lea ecx, [esp + 0x74]
call fcn.0041c140
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.0041c9d0
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.00446640
lea ecx, [esp + 0x74]
call fcn.0041c0e0
lea ecx, [esp + 0x74]
mov byte [esp + 0x1a8], bl
call fcn.0041c880
jmp 0x416ad0
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 0x170]
push ecx
push edx
lea ecx, [esp + 0x94]
call fcn.0041c9d0
mov al, byte [esp + 0x12]
test al, al
je 0x416b36
lea ecx, [esp + 0x40]
call fcn.0041bff0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x8c]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.004229a0
lea ecx, [esp + 0x40]
call fcn.0041c000
push eax
push 1
lea ecx, [esp + 0x48]
call fcn.00443b00
mov ecx, dword [esp + 0x24]
push eax
call fcn.0043fa90
test edi, edi
je 0x416b70
mov ebx, dword [edi]
lea ecx, [esp + 0x40]
call fcn.0041c000
mov edx, dword [esp + 0x18]
add eax, ebp
add edx, ebp
push eax
push edx
mov ecx, edi
call dword [ebx + 4]
jmp 0x416b6e
push 1
lea ecx, [esp + 0x90]
call fcn.0041c000
push eax
lea ecx, [esp + 0x94]
call fcn.00443b00
mov ecx, dword [esp + 0x24]
push eax
call fcn.0043fa90
test edi, edi
je 0x416b70
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 0x416b86
lea ecx, [esp + 0x8c]
call fcn.0041c0e0
lea ecx, [esp + 0x8c]
mov byte [esp + 0x1a8], 0xa
call fcn.0041c880
mov ebx, dword [esp + 0x28]
jmp 0x4169b8
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_read_compressed_size.
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x416bde
mov ecx, dword [esp + 0x1b8]
push str.Too_much_data.
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x416bde
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 0x416bed
mov edx, dword [ecx]
push 1
call dword [edx + 8]
cmp ebx, 0xffffffff
je 0x416c2d
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.0043ca40
mov eax, dword [esp + 0x40]
add esp, 8
cmp eax, 0x20
je 0x416c2d
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.00419f80
add esp, 8
lea ecx, [esp + 0x40]
mov byte [esp + 0x1a8], 9
call fcn.0041c880
lea ecx, [esp + 0x128]
mov byte [esp + 0x1a8], 8
call fcn.0041c880
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a8], 5
call fcn.004223b0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x1a8], 4
call fcn.00417620
lea ecx, [esp + 0xac]
mov byte [esp + 0x1a8], 0
call fcn.004149a0
mov ecx, dword [esp + 0x1b0]
mov dword [esp + 0x1a8], 0xffffffff
mov byte [ecx], 0
lea ecx, [esp + 0x58]
call fcn.004149a0
mov al, 1
jmp 0x416cd3
mov ecx, dword [esp + 0x1b8]
push str.Failed_to_get_filename_length
mov edx, dword [ecx]
call dword [edx + 0x10]
jmp 0x416cd1
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