Function at 0x458274
Capabilities:
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x45827c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040487c
mov eax, dword [ebp - 8]
call fcn.0040487c
xor eax, eax
push ebp
push 0x4584d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x45fabc
mov edx, 0x19001
call fcn.00406fe4
cmp dword [ebp - 8], 0
jne 0x4582cd
lea eax, [ebp - 8]
mov edx, dword [0x45fab8]
call fcn.00404464
mov eax, dword [ebp - 8]
call fcn.00408ae8
test al, al
je 0x4583e6
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00408958
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov edx, dword [ebp - 0x10]
shl edx, 0x18
add eax, edx
cmp eax, 0x500000
jbe 0x4583f1
mov eax, dword [ebp - 0xc]
call fcn.00408a78
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00408da0
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
mov ecx, 0x4584f0
call fcn.004046d8
mov eax, dword [ebp - 0x14]
call fcn.00408b1c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00408dd4
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
call fcn.00408e0c
mov eax, dword [ebp - 0x20]
call fcn.0040468c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040468c
mov ecx, eax
pop eax
sub ecx, eax
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.004048ec
push dword [ebp - 0x18]
call fcn.0040a2d4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x24]
mov eax, 0x458500
call fcn.0040af7c
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00408e0c
push dword [ebp - 0x28]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040474c
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
call fcn.004046d8
mov eax, dword [ebp - 0x2c]
call fcn.0040488c
push eax
mov eax, dword [ebp - 8]
call fcn.0040488c
push eax
call sub.kernel32.dll_MoveFileA
mov eax, dword [ebp - 8]
call fcn.004089b0
mov dword [ebp - 0xc], eax
jmp 0x4583f1
mov eax, dword [ebp - 8]
call fcn.004089b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4584b0
xor edx, edx
push ebp
push 0x45849e
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.0040a2d4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x30]
call fcn.0040af68
push dword [ebp - 0x30]
push 0x458518
push dword [ebp - 4]
push 0x458530
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040474c
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00408a34
inc eax
jne 0x45845e
mov eax, dword [ebp - 0xc]
call fcn.00408a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4584b0
mov eax, dword [ebp - 4]
call fcn.0040468c
mov ebx, eax
cmp ebx, 0x19000
jge 0x45848c
mov eax, 0x45fabc
mov edx, dword [ebp - 4]
call fcn.00408fdc
mov edx, 0x45fabc
mov ecx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00408a08
mov eax, dword [ebp - 0xc]
call fcn.00408a78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4584b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4584df
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.004043f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004043f0
ret