Function at 0x4013ea
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2194
call fcn.004c8990
mov eax, dword [0x5385d0]
xor eax, esp
mov dword [esp + 0x2190], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
xor ebx, ebx
mov edi, 0x7ff
push edi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x95]
push ebx
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x9c], bl
call fcn.004b7880
add esp, 0xc
push edi
lea eax, [esp + 0x119d]
push ebx
push eax
mov byte [esp + 0x11a4], bl
call fcn.004b7880
add esp, 0xc
push edi
lea eax, [esp + 0x99d]
push ebx
push eax
mov byte [esp + 0x9a4], bl
call fcn.004b7880
add esp, 0xc
push 0x103
lea eax, [esp + 0x895]
push ebx
push eax
mov byte [esp + 0x89c], bl
call fcn.004b7880
xor eax, eax
lea edi, [esp + 0x50]
add esp, 0xc
mov dword [esp + 0x40], ebx
mov edx, esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], ebx
stosd dword es:[edi], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov dword [0x54a334], ebx
call fcn.0047ebaf
test eax, eax
je 0x4014df
mov dword [0x54a330], ebx
xor eax, eax
jmp 0x401fb2
cmp dword [esp + 0x18], ebx
je 0x4014eb
push dword [esp + 0x18]
jmp 0x401516
mov edx, dword [esp + 0x30]
call fcn.0047ebaf
test eax, eax
jne 0x401515
push dword [esp + 0x30]
mov ecx, 0x800
lea eax, [esp + 0x99c]
call fcn.0047ebe1
pop ecx
call fcn.0047ef21
jmp 0x401528
push esi
mov ecx, 0x800
lea eax, [esp + 0x99c]
call fcn.0047ebe1
pop ecx
lea eax, [esp + 0x998]
push eax
push esi
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
jne 0x40155b
lea esi, [esp + 0x998]
call fcn.0047f3f4
mov eax, esi
push str._Unpacked
push eax
call fcn.004b6c30
mov esi, dword [esp + 0x14]
pop ecx
pop ecx
push 0x159
push str..Archive.c
mov edx, 0x4d520c
mov ecx, esi
call fcn.0041e477
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [esp + 0x1c], edi
jne 0x4015a0
mov edi, esi
call fcn.0041c5ff
test eax, eax
je 0x4014d2
push ebx
push esi
push str.:5:ExpandArchive___FAILED:_fopen___s____rb___FAILED:_The_given_source_archive_exists_but_cannot_be_opened_for_reading_:_bIsTempSourceUsed_d
call fcn.00418e96
add esp, 0xc
jmp 0x4014d2
mov esi, dword [esp + 0xc]
push str..exe
call fcn.0047f443
push eax
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
jne 0x4015e0
cmp dword [ebp + 0x1c], ebx
je 0x4015ca
push str._nLooking_for_self_extraction...
call fcn.00410186
pop ecx
mov ecx, esi
call fcn.004033a2
mov esi, eax
push ebx
push esi
push edi
call fcn.004b6d9f
add esp, 0xc
jmp 0x4015e2
xor esi, esi
push edi
push 1
lea eax, [esp + 0x50]
push 4
push eax
call fcn.004b7b96
add esp, 0x10
cmp dword [ebp + 0x1c], ebx
je 0x401604
push str._nValidating_CheckSum...
call fcn.00410186
pop ecx
push edi
push 1
lea eax, [esp + 0x44]
push 4
push eax
call fcn.004b7b96
mov ecx, dword [esp + 0x58]
push edi
call fcn.00404614
add esp, 0x14
push ebx
add esi, 0x10
push esi
push edi
mov dword [esp + 0x24], eax
call fcn.004b6d9f
add esp, 0xc
mov esi, str.222PAULAARCHIVE222JesusIAdoreYou
push edi
call fcn.004b7009
pop ecx
movsx ecx, byte [esi]
cmp eax, ecx
jne 0x4016a5
inc esi
cmp byte [esi], bl
jne 0x401637
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x3c]
je 0x4016f8
cmp dword [ebp + 0x1c], ebx
je 0x401668
push str._nERROR:_CheckSum_failed._The_given_archive_is_corrupt_
call fcn.00410186
pop ecx
push dword [esp + 0x18]
lea eax, [esp + 0x99c]
push dword [esp + 0x40]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x20]
push str.:4:A_corrupt_archive_file_was_passed_into_ExpandArchive___s_____s____d___d_:_The_CheckSum_should_be__ld_but_was_calculated_to_be__ld.
call fcn.0041936e
add esp, 0x1c
mov ecx, edi
call fcn.0041e8bf
mov dword [0x54a334], 1
jmp 0x4014d2
mov ecx, edi
call fcn.0041e8bf
cmp dword [ebp + 0x1c], ebx
je 0x4016bc
push str._nERROR:_The_given_archive_is_invalid_or_corrupt_
call fcn.00410186
pop ecx
mov ecx, dword [esp + 0xc]
push ebx
xor edx, edx
call fcn.0041cc74
pop ecx
push dword [ebp + 0x1c]
test eax, eax
push dword [ebp + 0x18]
lea eax, [esp + 0x9a0]
push eax
push dword [esp + 0x18]
jne 0x4016e6
push str.:4:An_invalid_archive_file_was_passed_into_ExpandArchive___s_____s____d___d_:_The_file_size_is_zero.
jmp 0x4016eb
push str.:4:An_invalid_archive_file_was_passed_into_ExpandArchive___s_____s____d___d_:_The_archive_validation_string_could_not_be_found.
call fcn.00418e96
add esp, 0x14
jmp 0x4014d2
mov dword [esp + 0x18], ebx
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push 1
push 4
push eax
mov dword [esp + 0x24], ebx
call fcn.004b7b96
add esp, 0x10
cmp eax, 1
jae 0x40175f
push dword [esp + 0x1c]
call fcn.004b7849
test eax, eax
pop ecx
jne 0x401d84
cmp dword [ebp + 0x1c], ebx
mov edi, str._n________ERROR__d________
je 0x401743
push 0x1ad
push edi
call fcn.00410186
pop ecx
pop ecx
push str._GetLastError_
push dword [esp + 0x18]
push dword [esp + 0x14]
push str.:9:ExpandArchive___s___FAILED:_fread___FAILED_to_read_the_size_of_the_next_entry:_read__ld:__s
call fcn.00418e96
add esp, 0x10
jmp 0x401764
mov edi, str._n________ERROR__d________
cmp dword [esp + 0x14], ebx
jl 0x401da0
push 0x800
lea eax, [esp + 0x94]
push ebx
push eax
call fcn.004b7880
add esp, 0xc
xor esi, esi
push dword [esp + 0x1c]
call fcn.004b7009
cmp eax, ebx
pop ecx
mov byte [esp + esi + 0x90], al
je 0x4017a4
inc esi
cmp esi, 0x800
jb 0x401786
cmp esi, 0x800
jae 0x401dc4
push 8
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.004b7880
add esp, 0xc
push dword [esp + 0x1c]
lea eax, [esp + 0x44]
push 1
push 8
push eax
call fcn.004b7b96
add esp, 0x10
cmp eax, 1
jb 0x401df3
cmp dword [esp + 0x14], ebx
jne 0x4017fd
lea edx, [esp + 0x90]
call fcn.0047ebaf
test eax, eax
je 0x4017fd
inc dword [esp + 0x34]
jmp 0x4016fc
mov edx, dword [esp + 0x30]
call fcn.0047ebaf
test eax, eax
jne 0x401823
lea eax, [esp + 0x90]
call fcn.0047ef21
mov ecx, dword [esp + 0x30]
mov ebx, eax
call fcn.0047f366
xor ebx, ebx
cmp dword [ebp + 0x1c], ebx
je 0x4018cf
cmp dword [ebp + 0x1c], 0xde
jne 0x4018bb
push 0x36
lea eax, [esp + 0x5d]
push ebx
push eax
mov byte [esp + 0x64], bl
call fcn.004b7880
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x199d]
push ebx
push eax
mov byte [esp + 0x19a4], bl
call fcn.004b7880
lea eax, [esp + 0x9c]
add esp, 0xc
push eax
mov edi, 0x800
mov ecx, edi
lea eax, [esp + 0x199c]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047eede
call fcn.0047f3f4
push ebx
push str..dat
push str..wav
mov eax, esi
push edi
push eax
call fcn.004803aa
add esp, 0x14
mov eax, esi
push eax
push 0x37
pop ecx
lea eax, [esp + 0x5c]
call fcn.0047ebe1
pop ecx
jmp 0x4018c2
lea eax, [esp + 0x90]
push eax
push str._nExpanding:___s_
call fcn.00410186
pop ecx
pop ecx
lea edx, [esp + 0x998]
lea ecx, [esp + 0x90]
call fcn.0047f16b
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x119c]
push eax
call fcn.004b6c20
lea eax, [esp + 0x11a0]
call fcn.0047ef21
push eax
call fcn.0041c6ac
add esp, 0xc
test eax, eax
jne 0x40193c
push ebx
lea ecx, [esp + 0x119c]
call fcn.0041c9b8
pop ecx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x1198]
push eax
call fcn.0041c6ac
test eax, eax
pop ecx
je 0x401e1b
cmp dword [ebp + 0x18], ebx
jne 0x4019fb
lea edi, [esp + 0x90]
call fcn.0041c5ff
test eax, eax
je 0x4019fb
push ebx
push ebx
lea eax, [esp + 0x58]
push eax
push ebx
mov eax, edi
push ebx
push eax
call fcn.0041ce2d
add esp, 0x18
test eax, eax
jne 0x40198f
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp eax, 0xde
jge 0x40198f
mov eax, edi
push eax
push str.:4:ExpandArchive___EAP:_GetFileTimeTimeOut___s___FAILED_
call fcn.00418e96
pop ecx
pop ecx
push 0xea60
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0041dedd
add esp, 0xc
test eax, eax
jge 0x4019fb
push 1
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.004b6d9f
add esp, 0xc
test eax, eax
je 0x4016fc
cmp dword [ebp + 0x1c], ebx
je 0x4019da
push 0x21a
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
cmp dword [esp + 0x10], 0xde
jge 0x401f55
push str._GetLastError_
push dword [esp + 0x18]
push str.:9:ExpandArchive___encountered_a_problem:_fseek__ld__SEEK_CUR___FAILED:_entry_could_not_be_skipped:__s
jmp 0x401f4d
call fcn.004a6bcb
mov dword [esp + 0x2c], eax
xor edi, edi
push 0x22a
push str..Archive.c
mov edx, 0x4d57c8
lea ecx, [esp + 0x98]
call fcn.0041e477
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x28], eax
jne 0x401b50
call fcn.004a6bcb
sub eax, dword [esp + 0x2c]
cmp eax, 0x1194
ja 0x401a76
cmp dword [0x54a330], ebx
jne 0x401a76
lea esi, [esp + 0x90]
call fcn.0047f72c
mov eax, esi
push eax
call fcn.004b68f0
pop ecx
mov ecx, esi
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x401a76
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xf
jl 0x401a06
cmp dword [ebp + 0x1c], ebx
je 0x401ac8
lea eax, [esp + 0x90]
push eax
call fcn.004b68f0
pop ecx
lea ecx, [esp + 0x90]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x401ac8
push dword [esp + 0x1c]
call fcn.004b6b13
pop ecx
push eax
push 0x23e
push str._n________ERROR__d__d________
call fcn.00410186
add esp, 0xc
lea eax, [esp + 0x90]
push eax
push str._n___Could_not_open_destination___s__for_writing_
call fcn.00410186
pop ecx
pop ecx
cmp dword [0x54a330], ebx
jne 0x401b02
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp eax, 0xde
jge 0x401b02
call fcn.004a6bcb
sub eax, dword [esp + 0x2c]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x98]
push eax
push str.:9:ExpandArchive___encountered_a_problem:_fopen___s____wb____ld_bytes_FAILED_:_Could_not_open_the_destination_file_after__ldms___This_file_is_being_skipped...
call fcn.00418e96
add esp, 0x10
cmp dword [esp + 0x14], ebx
jle 0x4016fc
push 1
push dword [esp + 0x18]
push dword [esp + 0x24]
call fcn.004b6d9f
add esp, 0xc
test eax, eax
je 0x4016fc
cmp dword [ebp + 0x1c], ebx
je 0x401b3c
push 0x248
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
push str._GetLastError_
push str.:9:ExpandArchive___has_a_serious_problem:_fseek_failed_too__Entry_could_not_opened_cannot_be_skipped:__s
call fcn.00418e96
jmp 0x401e54
mov edi, dword [esp + 0x24]
inc dword [esp + 0x18]
cmp edi, ebx
jne 0x401b78
push 1
push 0xc366
call fcn.004b66ca
cmp eax, ebx
pop ecx
pop ecx
mov dword [esp + 0x24], eax
je 0x401e5b
mov edi, eax
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
jle 0x401c98
push dword [esp + 0x1c]
lea eax, [esp + 0x24]
push 1
push 2
push eax
call fcn.004b7b96
add esp, 0x10
cmp eax, 1
jb 0x401e80
cmp word [esp + 0x20], bx
je 0x401f28
movzx eax, word [esp + 0x20]
mov dword [esp + 0x4c], eax
fild dword [esp + 0x4c]
fcomp qword [0x534178]
fnstsw ax
test ah, 0x41
je 0x401f28
movzx esi, word [esp + 0x20]
push dword [esp + 0x1c]
push esi
push 1
push edi
call fcn.004b7b96
add esp, 0x10
cmp eax, esi
jb 0x401eb9
push dword [esp + 0x38]
add esi, edi
push esi
push dword [esp + 0x28]
mov eax, edi
call fcn.0040303d
movzx eax, ax
add esp, 0xc
cmp ax, bx
je 0x401ef5
push dword [esp + 0x28]
movzx esi, ax
movzx eax, word [esp + 0x24]
push esi
add eax, edi
push 1
push eax
call fcn.004b6868
add esp, 0x10
cmp eax, esi
jae 0x401c6d
cmp dword [ebp + 0x1c], ebx
je 0x401c3f
push 0x29d
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp eax, 0xde
jge 0x401c6d
push str._GetLastError_
lea eax, [esp + 0x94]
push eax
push esi
push dword [esp + 0x18]
push str.:8:ExpandArchive___s___FAILED:_failed_to_write_a_block_of_size__ld_to_destination_file___s_:_fwrite___FAILED:__s
call fcn.00418e96
add esp, 0x14
cmp dword [ebp + 0x1c], ebx
je 0x401c7d
push 0x4d5c64
call fcn.00410186
pop ecx
movzx eax, word [esp + 0x20]
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + eax + 2]
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
jl 0x401b86
mov ecx, dword [esp + 0x28]
call fcn.0041e8bf
push ebx
push closesocket
push 3
push ebx
push 7
push 0x100
lea eax, [esp + 0xa8]
push eax
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401d25
cmp dword [ebp + 0x1c], ebx
je 0x401ce0
push 0x2c2
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp eax, 0xde
jge 0x4016fc
push 0x2c4
push str.:7:________ERROR__d________
call fcn.0041936e
push str._GetLastError_
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x1c]
push str.:7:ExpandArchive___s___encountered_a_problem:_failed_to_set_the_files_time_stamp___s_:_CreateFile___FAILED:__s
call fcn.00418e96
add esp, 0x18
jmp 0x4016fc
lea eax, [esp + 0x40]
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x401d7a
cmp dword [ebp + 0x1c], ebx
je 0x401d4d
push 0x2c9
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
cmp eax, 0xde
jge 0x401d7a
push str._GetLastError_
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x14]
push str.:7:ExpandArchive___s___encountered_a_problem:_failed_to_set_the_files_time_stamp___s_:_SetFileTime___FAILED:__s
call fcn.00418e96
add esp, 0x10
call fcn.0041ed31
jmp 0x4016fc
xor esi, esi
inc esi
cmp dword [ebp + 0x1c], ebx
je 0x401f57
push str._nDone_
call fcn.00410186
pop ecx
jmp 0x401f57
cmp dword [ebp + 0x1c], ebx
je 0x401db2
push 0x1b4
push edi
call fcn.00410186
pop ecx
pop ecx
push dword [esp + 0x14]
push dword [esp + 0x10]
push str.:9:ExpandArchive___s___FAILED:_an_entry_size_was_read_to_be__ld_wich_is_invalid_
jmp 0x401f4d
cmp dword [ebp + 0x1c], ebx
mov byte [esp + 0x10e], bl
je 0x401ddd
push 0x1ca
push edi
call fcn.00410186
pop ecx
pop ecx
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x10]
push str.:9:ExpandArchive___s___FAILED:_The_following_string_was_read_as_a_file_name_for_one_of_the_entries:___s_
jmp 0x401f4d
cmp dword [ebp + 0x1c], ebx
je 0x401e05
push 0x1d3
push edi
call fcn.00410186
pop ecx
pop ecx
lea eax, [esp + 0x90]
push eax
push dword [esp + 0x10]
push str.:9:ExpandArchive___s___FAILED:_fread___FAILED_to_read_the_file_time_stamp_for___s_
jmp 0x401f4d
cmp dword [ebp + 0x1c], ebx
je 0x401e34
lea eax, [esp + 0x1198]
push eax
push str._nERROR:_Could_not_create_directory___s_
call fcn.00410186
pop ecx
pop ecx
cmp dword [esp + 0x10], 0xde
jge 0x401f55
lea eax, [esp + 0x1198]
push eax
push str.:3:ExpandArchive___FAILED:_Could_not_create_the_destination_directory:___s_
call fcn.0041936e
pop ecx
pop ecx
jmp 0x401f55
cmp dword [ebp + 0x1c], ebx
je 0x401e71
push 0x25f
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
push 0x56ce
push str.:8:ExpandArchive___FAILED:_calloc___failed_to_allocate____ld__2.25f___10__bytes_of_date:_OUT_OF_MEMORY_
jmp 0x401b46
cmp dword [ebp + 0x1c], ebx
je 0x401e96
push 0x26b
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
push str._GetLastError_
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x14]
push str.:9:ExpandArchive___s___FAILED:_Unrecoverable_error:_the_next_block_size_for___s__could_not_be_read:_fread___FAILED:__s
call fcn.00418e96
add esp, 0x10
jmp 0x401f55
cmp dword [ebp + 0x1c], ebx
je 0x401ecf
push 0x27d
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
push str._GetLastError_
lea eax, [esp + 0x94]
push eax
movzx eax, word [esp + 0x28]
push eax
push dword [esp + 0x18]
push str.:8:ExpandArchive___s___FAILED:_Unrecoverable_error:_the_next_block_to_read_should_be__ld__but_fread___failed_to_read_this_amount_of_data_from_the_file___s_:_fread___FAILED:__s
call fcn.00418e96
add esp, 0x14
jmp 0x401f55
cmp dword [esp + 0x38], ebx
jne 0x401f09
push dword [esp + 0xc]
push str.:8:ExpandArchive___s___FAILED:_ExpandBlock___FAILED_with_no_key.
jmp 0x401e4f
push dword [esp + 0x38]
push dword [esp + 0x10]
push str.:8:ExpandArchive___s___FAILED:_ExpandBlock___FAILED_with_the_following_key:___s_.
call fcn.0041936e
xor esi, esi
add esp, 0xc
inc esi
or dword [esp + 0x18], 0xffffffff
jmp 0x401f57
cmp dword [ebp + 0x1c], ebx
je 0x401f3e
push 0x274
push str._n________ERROR__d________
call fcn.00410186
pop ecx
pop ecx
movzx eax, word [esp + 0x20]
push eax
push dword [esp + 0x10]
push str.:9:ExpandArchive___s___FAILED:_Unrecoverable_error:_the_size_of_the_next_block_of_compressed_data_was_read_to_be__ld_which_is_invalid.
call fcn.00418e96
add esp, 0xc
xor esi, esi
mov ecx, dword [esp + 0x1c]
call fcn.0041e8bf
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x401f6d
call fcn.0041e8bf
cmp dword [esp + 0x24], ebx
je 0x401f7d
push dword [esp + 0x24]
call fcn.004b651e
pop ecx
cmp dword [esp + 0x34], ebx
mov dword [0x54a330], ebx
jle 0x401fa8
push dword [esp + 0x34]
push dword [esp + 0x10]
push str.:9:ExpandArchive___s___encountered__d_zero_sized_INVALID_files_in_the_archive_
call fcn.00418e96
add esp, 0xc
cmp dword [esp + 0x18], ebx
jle 0x401fa8
mov dword [esp + 0x18], ebx
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x219c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret