Function at 0x41da80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2510
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edx, edx
jne 0x41dab6
xor ecx, ecx
jmp 0x41dacf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dac0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebx + 0x18]
call fcn.0041cd40
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx - 0xc]
test ecx, ecx
je 0x41db11
lea eax, [ecx - 1]
test eax, eax
js 0x41db9a
cmp eax, ecx
jg 0x41db9a
movzx eax, word [edx + eax*2]
cmp eax, 0x5c
je 0x41db11
cmp eax, 0x2f
je 0x41db11
push str.0s
lea ecx, [ebx + 0x18]
call fcn.0041c1b0
mov ecx, dword [ebx + 0x18]
call fcn.00488900
mov edi, dword [ebx + 0x24]
mov edi, dword [edi]
cmp edi, dword [ebx + 0x24]
je 0x41dd3b
or esi, 0xffffffff
nop word [eax + eax]
cmp dword [ebx + 0x30], 0
jne 0x41dda9
mov ebx, dword [edi + 8]
push ebx
mov dword [ebp - 0x1c], ebx
call fcn.0041f950
test eax, eax
jne 0x41dba4
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0041ceb0
mov dword [ebp - 4], 0
push dword [eax]
push str.C7zExtractImpl::ExtractMemoryFiles_not_extracting_file__ws
push 0x515408
call fcn.0048be90
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41dd2d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x41dd2d
push 0x80070057
call fcn.0041ce60
cmp dword [ebx + 4], 0
jne 0x41dd93
call fcn.0041bef0
test eax, eax
je 0x41dd89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0041ceb0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x14]
push ecx
push dword [eax]
mov ecx, dword [ebp + 8]
call fcn.0041f430
test eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x24]
mov eax, esi
sete byte [ebp + 0xf]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41dc14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xf], 0
mov esi, dword [ebp - 0x14]
jne 0x41dd51
test esi, esi
jne 0x41dc29
xor eax, eax
jmp 0x41dc3f
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dc30
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebx + 0xc]
call fcn.0041cd40
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebx + 0x24]
push 0
mov dword [ebp - 0x18], eax
sub ebx, dword [ecx + 0x20]
lea ecx, [ebp + 0xc]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41dc97
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
sub ebx, dword [ebp + 0xc]
je 0x41dd00
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41dc74
mov eax, dword [0x5153cc]
mov edi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5153cc]
push eax
push 0x79
call dword [edi + 0x20]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 8]
push eax
call fcn.0041cee0
mov byte [ebp - 4], 3
push dword [eax]
push str.C7zExtractImpl::ExtractMemoryFiles_SaveToFile_error_ws
push 0x515408
call fcn.0048be90
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp + 8]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41dcf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41dd54
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41dd2a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
mov ebx, dword [ebp + 8]
mov edi, dword [edi]
cmp edi, dword [ebx + 0x24]
jne 0x41db30
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x41ddca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0041ce60
mov ecx, dword [0x5153cc]
push 2
push 0x78
mov eax, dword [ecx]
call dword [eax + 0x20]
push str.C7zExtractImpl::ExtractMemoryFiles
jmp 0x41ddbd
mov ecx, dword [0x5153cc]
push 1
push 0x78
mov eax, dword [ecx]
call dword [eax + 0x20]
push str.ExtractMemoryFiles_ExitByCancelInstall
push 0x515408
call fcn.0048be90
add esp, 8
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8