Function at 0x4042e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x478], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
push esi
cdq
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x60], 0x4040a0
mov dword [esp + 0x64], 0x404130
mov dword [esp + 0xc], 0x401010
mov dword [esp + 0x10], 0x401000
mov dword [esp + 0x14], 0x401010
mov dword [esp + 0x18], 0x401000
call fcn.004052f0
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
lea esi, [esp + 0x20]
lea eax, [esp + 0x60]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.00403e00
mov esi, eax
cmp esi, edi
jne 0x404481
mov edx, dword [esp + 0x38]
xor ecx, ecx
xor esi, esi
cmp edx, edi
mov dword [0x473f90], ecx
mov dword [0x473f94], esi
jbe 0x4043de
mov eax, dword [esp + 0x3c]
add eax, 8
mov ebx, dword [eax]
add ecx, ebx
mov ebx, dword [eax + 4]
adc esi, ebx
add eax, 0x20
sub edx, 1
jne 0x4043c1
mov dword [0x473f94], esi
mov dword [0x473f90], ecx
mov eax, dword [0x473f8c]
cmp eax, edi
je 0x4043f0
push 1
push edi
push ecx
call eax
add esp, 0xc
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.00404730
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x404481
push esi
push str.ExtractFile
lea edx, [esp + 0x88]
push 0x200
push edx
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x10
cmp edx, edi
mov word [esp + 0x47e], di
je 0x404481
lea eax, [esp + 0x80]
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404450
sub eax, ebx
sar eax, 1
push edx
add eax, eax
push eax
lea ecx, [esp + 0x88]
push 1
push ecx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x58]
add esp, 4
push ecx
call ebx
mov edx, dword [esp + 0x5c]
add esp, 4
push edx
call ebx
mov eax, dword [esp + 0x60]
add esp, 4
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x20]
push ebx
push ecx
call fcn.00403f70
add esp, 8
cmp esi, edi
jne 0x40455f
mov edx, dword [ebp + 0xc]
push edx
push str._TestLzma_:
lea eax, [esp + 0x88]
push 0x200
push eax
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x10
cmp edx, edi
mov word [esp + 0x47e], di
je 0x404531
lea eax, [esp + 0x80]
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404500
sub eax, esi
push edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x88]
push 1
push edx
call fcn.004422ed
mov eax, dword [0x474bb0]
push eax
call fcn.004428a9
add esp, 0x14
mov ecx, dword [0x473f8c]
cmp ecx, edi
je 0x404548
mov eax, dword [0x473f90]
push edi
push eax
push eax
call ecx
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.004414cc
mov esp, ebp
pop ebp
ret
cmp esi, 0x80004001
jne 0x4045b5
mov ecx, dword [ebp + 0xc]
push ecx
push str._TestLzma_:decoder_doesnt_support_this_archive__size:_d_r_n
lea edx, [esp + 0x88]
push 0x200
push edx
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x10
cmp edx, edi
mov word [esp + 0x47e], di
je 0x404711
lea eax, [esp + 0x80]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4045a5
jmp 0x4046eb
cmp esi, 0x8007000e
jne 0x40462f
mov eax, dword [ebp + 0xc]
push eax
push str._TestLzma_:can_not_allocate_memory__size:_d_r_n
lea ecx, [esp + 0x88]
push 0x200
push ecx
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x10
cmp edx, edi
mov word [esp + 0x47e], di
je 0x404711
lea eax, [esp + 0x80]
lea esi, [eax + 2]
jmp 0x404600
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404600
sub eax, esi
push edx
sar eax, 1
lea edx, [eax + eax]
push edx
lea eax, [esp + 0x88]
push 1
push eax
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
jmp 0x404709
cmp esi, 3
jne 0x40469d
mov edx, dword [ebp + 0xc]
push edx
push str._TestLzma_:CRC_error__size:_d_r_n
lea eax, [esp + 0x88]
push 0x200
push eax
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x10
cmp edx, edi
mov word [esp + 0x47e], di
je 0x404711
lea eax, [esp + 0x80]
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x404672
sub eax, esi
push edx
sar eax, 1
lea ecx, [eax + eax]
push ecx
lea edx, [esp + 0x88]
push 1
push edx
call fcn.004422ed
mov eax, dword [0x474bb0]
push eax
jmp 0x404709
mov ecx, dword [ebp + 0xc]
push ecx
push esi
push str._TestLzma_:ERROR__d__size:_d_r_n
lea edx, [esp + 0x8c]
push 0x200
push edx
call fcn.004414db
mov edx, dword [0x474bb0]
add esp, 0x14
cmp edx, edi
mov word [esp + 0x47e], di
je 0x404711
lea eax, [esp + 0x80]
lea esi, [eax + 2]
jmp 0x4046e0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4046e0
sub eax, esi
sar eax, 1
push edx
add eax, eax
push eax
lea ecx, [esp + 0x88]
push 1
push ecx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
mov ecx, dword [esp + 0x484]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004414cc
mov esp, ebp
pop ebp
ret