Function at 0x460ba4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4004c]
test eax, eax
je 0x460dcb
xor edx, edx
push ebp
push 0x460bf6
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 4]
cmp dword [edx + 0x40058], 0
je 0x460bec
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x4c
mov ebx, dword [ebp - 4]
call dword [ebx + 0x40058]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460c00
call fcn.004128e8
add esp, 0xfffffff8
fstp qword [esp]
wait
call fcn.0045fe48
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], edx
xor ecx, ecx
push ebp
push 0x460dc1
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, 0x22
call fcn.00410858
mov ebx, eax
test ebx, ebx
jge 0x460c55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ecx, 0x22
mov edx, 0x10
call fcn.004108b0
mov ebx, eax
test ebx, ebx
jge 0x460c66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460dcb
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.0041094c
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
test eax, eax
jle 0x460d90
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4004c]
add edx, edi
cmp eax, edx
jge 0x460d90
mov ecx, eax
mov esi, dword [ebp - 4]
sub ecx, dword [esi + 0x4004c]
sub ecx, edi
mov edx, eax
test edx, edx
jns 0x460cad
add edx, 7
sar edx, 3
cmp ecx, edx
jge 0x460cb8
mov eax, edx
jmp 0x460cc9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4004c]
sub eax, edi
cmp edi, eax
jg 0x460ccf
mov eax, edi
mov dword [ebp - 0xc], eax
mov eax, 0x40000
call fcn.004041b8
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xc]
cmp edi, esi
jle 0x460d82
mov eax, edi
sub eax, esi
cmp eax, 0x40000
jge 0x460cfe
mov eax, edi
sub eax, esi
mov dword [ebp - 0x18], eax
jmp 0x460d05
mov dword [ebp - 0x18], 0x40000
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, esi
mov eax, ebx
call fcn.0041094c
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.004108f4
cmp esi, dword [ebp - 0xc]
jne 0x460d5c
mov eax, dword [0x4984f8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x460d47
mov eax, dword [ebp - 0x20]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4984f8]
call fcn.00406a08
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
call fcn.00404350
mov edx, esi
sub edx, dword [ebp - 0xc]
xor ecx, ecx
mov eax, ebx
call fcn.0041094c
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov eax, ebx
call fcn.00410920
add esi, dword [ebp - 8]
cmp edi, esi
jg 0x460cea
mov eax, dword [ebp - 0x14]
call fcn.004041d4
push ebx
call sub.kernel32.dll_SetEndOfFile
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4004c]
mov eax, dword [ebp - 4]
lea edx, [eax + 0x4c]
mov eax, ebx
call fcn.00410920
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4004c], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460dcb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret