Function at 0x4712d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x5080f4]
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 0x471313
cmp esi, 0xffffffff
je 0x471492
test eax, eax
jne 0x471320
cmp ecx, 0xffffffff
je 0x471492
lea eax, [esp + 0x48]
push eax
call fcn.0049a9d0
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 0x471384
lea eax, [esp + 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4714ad
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 0x4713a2
push ebx
call fcn.0049b980
add esp, 4
mov dword [edi + 0x70], eax
test eax, eax
je 0x4714d1
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.0049bf40
add esp, 8
test eax, eax
jne 0x4714ee
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], 0x470c40
mov dword [esp + 0x34], 0x470d00
mov dword [esp + 0x50], 5
call fcn.0049c070
add esp, 0xc
test eax, eax
jne 0x47150c
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 [0x4d9444]
call esi
add esp, 0xc
cmp eax, 0xd
jne 0x47152a
push ebx
push ebx
push 0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x70]
call fcn.0049bb90
add esp, 0x18
test eax, eax
jne 0x47154e
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00484d55
mov esp, ebp
pop ebp
ret 0x14
push 0x57
lea ecx, [esp + 0x84]
call fcn.0043e050
push 0x5057bc
mov eax, ecx
push eax
call fcn.004a0209
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.0043e0b0
push 0x5057bc
lea eax, [esp + 0x14]
push eax
call fcn.004a0209
push str.Unable_to_create_the_LZMA_encoder_
lea ecx, [esp + 0x14]
call fcn.0043e080
push 0x5057bc
lea eax, [esp + 0x14]
push eax
call fcn.004a0209
push str.Unable_to_store_LZMA_props_into_the_encoder_
push eax
lea ecx, [esp + 0x18]
call fcn.0043e0b0
push 0x5057bc
lea eax, [esp + 0x14]
push eax
call fcn.004a0209
push str.Unable_to_write_LZMA_properties_
push eax
lea ecx, [esp + 0x18]
call fcn.0043e0b0
push 0x5057bc
lea eax, [esp + 0x14]
push eax
call fcn.004a0209
push str.Unable_to_write_to_the_output_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.0043e0b0
push 0x5057bc
lea eax, [esp + 0x14]
push eax
call fcn.004a0209
push str.Unable_to_compress_LZMA_stream_
push eax
lea ecx, [esp + 0x18]
call fcn.0043e0b0
push 0x5057bc
lea eax, [esp + 0x14]
push eax
call fcn.004a0209
int3