Function at 0x45bd30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x55f2b4]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x45bfad
test eax, eax
jne 0x45bd73
cmp edi, 0xffffffff
je 0x45bfad
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xd
jb 0x45bfc5
lea eax, [esi + 4]
push eax
push 5
lea edx, [esi + 0xc]
push ecx
push edx
call fcn.004752c0
add esp, 0x10
test eax, eax
jne 0x45bfe4
lea eax, [esi + 0xc]
push eax
call fcn.00475820
add esp, 4
cmp edi, 0xffffffff
je 0x45bdcb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 5]
mov ecx, dword [ecx + 9]
test ecx, ecx
jl 0x45bdcb
jg 0x45bdbf
test eax, eax
jb 0x45bdcb
push ecx
push eax
mov ecx, edi
call fcn.0045c9c0
add esp, 8
mov edx, dword [esp + 0x24]
test edx, edx
je 0x45be12
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 5]
mov eax, dword [eax + 9]
test eax, eax
jl 0x45be12
jg 0x45bde9
test ecx, ecx
je 0x45be12
test eax, eax
ja 0x45be12
jb 0x45bdf5
cmp ecx, 0x7fffffff
jae 0x45be12
mov eax, dword [edx + 8]
sub eax, dword [edx]
cmp ecx, eax
jbe 0x45be12
cmp ecx, 0x7fffffff
ja 0x45c002
push ecx
mov ecx, edx
call fcn.0045c760
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
add eax, 0xd
movlpd qword [esp + 0x40], xmm0
mov edi, dword [esp + 0x40]
add ebx, 0xfffffff3
mov dword [esp + 0x18], eax
xor ecx, ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
nop dword [eax + eax]
mov dword [esi + 0x24], 0
test ecx, ecx
jb 0x45be57
ja 0x45be52
cmp ebx, 0xffffffff
jbe 0x45be57
or eax, 0xffffffff
jmp 0x45be59
mov eax, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 5]
mov ecx, edx
mov eax, dword [eax + 9]
sub ecx, edi
mov dword [esp + 0x40], eax
sbb eax, dword [esp + 0x10]
test eax, eax
ja 0x45be82
jb 0x45be87
mov eax, dword [esi + 0x20]
cmp ecx, eax
jae 0x45be85
jmp 0x45be87
mov eax, dword [esi + 0x20]
mov ecx, eax
test ecx, ecx
je 0x45bf99
xor eax, eax
cmp dword [esp + 0x40], eax
jl 0x45beaa
jg 0x45be9d
test edx, edx
je 0x45beaa
sub edx, edi
cmp dword [esi + 0x20], edx
mov edx, 1
cmovae eax, edx
lea edx, [esp + 0x40]
mov dword [esp + 0x40], 0
push edx
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x24]
lea eax, [esi + 0xc]
push ecx
push eax
call fcn.00475450
add esp, 0x18
test eax, eax
jne 0x45c04a
mov eax, dword [esp + 0x3c]
sub ebx, eax
mov dword [esp + 0x48], 0
sbb dword [esp + 0x1c], 0
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x45bf23
push 0
lea ecx, [esp + 0x4c]
push ecx
push dword [esi + 0x24]
push dword [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45c026
add edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
adc ecx, 0
mov dword [esp + 0x10], ecx
jmp 0x45bf27
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x45bf55
mov ecx, dword [esi + 0x1c]
push dword [esp + 0x20]
mov eax, dword [esi + 0x24]
add eax, ecx
push eax
push ecx
push dword [edx + 4]
mov ecx, edx
call fcn.0044a570
add edi, dword [esi + 0x24]
mov ecx, dword [esp + 0x10]
adc ecx, 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x40]
cmp eax, 1
je 0x45bf76
cmp eax, 4
je 0x45bf76
mov ecx, dword [esp + 0x1c]
mov eax, ebx
or eax, ecx
je 0x45c007
jmp 0x45be40
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x45bf99
mov edx, dword [esp + 0x14]
cmp dword [edx + 5], edi
jne 0x45bf8d
cmp dword [edx + 9], ecx
je 0x45bf99
push ecx
push edi
mov ecx, eax
call fcn.0045c9c0
add esp, 8
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d0675
mov esp, ebp
pop ebp
ret 0x10
push 0x57
lea ecx, [esp + 0x2c]
call fcn.00468df0
push 0x55c1ac
mov eax, ecx
push eax
call fcn.004e81cb
push str.Unable_to_read_LZMA_header_
push 0xd
lea ecx, [esp + 0x30]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x2c]
push eax
call fcn.004e81cb
push str.Unable_to_allocate_LZMA_context_
push eax
lea ecx, [esp + 0x30]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x2c]
push eax
call fcn.004e81cb
call fcn.004170a0
push str.The_LZMA_stream_has_ended_prematurely_
push 1
lea ecx, [esp + 0x30]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x2c]
push eax
call fcn.004e81cb
push str.Unable_to_write_uncompressed_data_to_the_disk_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x30]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x2c]
push eax
call fcn.004e81cb
push str.Unable_to_decompress_LZMA_stream_
push eax
lea ecx, [esp + 0x30]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x2c]
push eax
call fcn.004e81cb
int3