Function at 0x45c070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x55f2b4]
xor eax, esp
mov dword [esp + 0x90], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], edx
mov dword [esp], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], ecx
test edx, edx
jne 0x45c0b3
cmp esi, 0xffffffff
je 0x45c232
test eax, eax
jne 0x45c0c0
cmp ecx, 0xffffffff
je 0x45c232
lea eax, [esp + 0x48]
push eax
call fcn.00472140
mov eax, dword [edi + 0x74]
add esp, 4
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x78]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], 0
cmp esi, 0xffffffff
je 0x45c124
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45c24d
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov eax, dword [edi + 0x70]
lea ebx, [edi + 4]
test eax, eax
jne 0x45c142
push ebx
call fcn.004730f0
add esp, 4
mov dword [edi + 0x70], eax
test eax, eax
je 0x45c271
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004736b0
add esp, 8
test eax, eax
jne 0x45c28e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x84]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x7c]
push eax
push dword [edi + 0x70]
mov dword [esp + 0x40], 0x45bb50
mov dword [esp + 0x34], 0x45bc10
mov dword [esp + 0x50], 5
call fcn.004737e0
add esp, 0xc
test eax, eax
jne 0x45c2ac
mov eax, dword [esp + 0xc]
mov dword [esp + 0x89], eax
lea eax, [esp + 0x80]
push 0xd
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x8d], esi
mov esi, dword [esp + 0x30]
mov ecx, esi
push eax
call dword [0x51a4a0]
call esi
add esp, 0xc
cmp eax, 0xd
jne 0x45c2ca
push ebx
push ebx
push 0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x70]
call fcn.00473300
add esp, 0x18
test eax, eax
jne 0x45c2ee
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d0675
mov esp, ebp
pop ebp
ret 0x14
push 0x57
lea ecx, [esp + 0x84]
call fcn.00468df0
push 0x55c1ac
mov eax, ecx
push eax
call fcn.004e81cb
push str.Unable_to_retrieve_the_size_of_the_input_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004e81cb
push str.Unable_to_create_the_LZMA_encoder_
lea ecx, [esp + 0x14]
call fcn.00468e20
push 0x55c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004e81cb
push str.Unable_to_store_LZMA_props_into_the_encoder_
push eax
lea ecx, [esp + 0x18]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004e81cb
push str.Unable_to_write_LZMA_properties_
push eax
lea ecx, [esp + 0x18]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004e81cb
push str.Unable_to_write_to_the_output_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004e81cb
push str.Unable_to_compress_LZMA_stream_
push eax
lea ecx, [esp + 0x18]
call fcn.00468e50
push 0x55c1ac
lea eax, [esp + 0x14]
push eax
call fcn.004e81cb
int3