Function at 0x45dd90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a802
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x30], 0
je 0x45e023
cmp dword [ebx + 0x2c], 0xffffffff
je 0x45def3
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x45e019
mov eax, 0x800000
cmp esi, 0x800000
ja 0x45dde9
mov eax, esi
mov edx, dword [ebx + 0x2c]
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45de15
mov eax, dword [ebp + 0xc]
add edi, eax
sub esi, eax
jne 0x45ddda
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
jmp 0x45e048
test byte [0x6353fc], 1
jne 0x45de45
or dword [0x6353fc], 1
mov dword [ebp - 4], 0
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x635400]
call esi
push eax
mov eax, dword [edi + 8]
push str.WriteFile_error__d
push str.UnZip.cpp
push 0xec
push 2
push 0x635400
call eax
add esp, 0x18
test byte [0x6353d0], 1
jne 0x45dea2
mov eax, 1
or dword [0x6353d0], eax
mov dword [ebp - 4], eax
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edi, dword [0x6353d4]
call esi
mov ecx, dword [edi + 4]
push eax
push str.WriteFile_error__d
push 2
push 0x6353d4
call ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebx + 0x34]
add esp, 0x10
test eax, eax
je 0x45deda
mov edi, dword [eax]
call esi
mov ecx, dword [ebx + 0x34]
mov edx, dword [edi]
push eax
call edx
mov eax, 0x8003001d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, 1
test byte [0x6353fc], bl
jne 0x45dfad
or dword [0x6353fc], ebx
mov dword [ebp - 4], 2
xor edi, edi
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], edi
mov dword [0x635420], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
push 8
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, edi
je 0x45df5d
mov dword [eax], 0xffffffff
mov byte [eax + 4], bl
mov esi, eax
jmp 0x45df5f
xor esi, esi
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
add dword [0x635420], ebx
cmp eax, edi
je 0x45df82
push eax
call fcn.0048bcc1
add esp, 4
sub dword [0x635420], ebx
push 0x635408
mov dword [0x635404], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x635400]
mov ecx, dword [eax + 8]
push str.7z_Write_Error
push str.UnZip.cpp
push 0xfa
push 2
push 0x635400
call ecx
add esp, 0x14
test byte [0x6353d0], 1
jne 0x45dfff
or dword [0x6353d0], ebx
mov dword [ebp - 4], 4
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x6353d4]
mov eax, dword [edx + 4]
push str.7z_Write_Error
push 2
push 0x6353d4
call eax
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [ecx], edx
jmp 0x45e048
mov eax, dword [ebx + 0x24]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x45e040
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebx + 0x28]
push esi
push ecx
add edx, eax
push edx
call fcn.0048b960
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
add dword [ebx + 0x28], esi
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 0x10