Function at 0x45beec
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc8
mov dword [esp], edx
mov ebx, eax
mov byte [esp + 4], 0
mov eax, ebx
call fcn.0046fbdc
mov eax, dword [0x4be564]
fistp qword [eax]
wait
cmp dword [esp], 0
jne 0x45bf58
mov eax, dword [0x4be564]
fild qword [eax]
fadd dword [0x45c410]
mov eax, dword [ebx + 0xc]
fild qword [eax + 0x10]
fcompp
fnstsw ax
sahf
jne 0x45bf58
mov ax, 0x2f
call fcn.004aa600
mov edx, 2
call fcn.004b12a8
cmp al, 1
jne 0x45bf58
mov eax, dword [0x4be564]
fild qword [eax]
fadd dword [0x45c410]
mov eax, dword [0x4be564]
fistp qword [eax]
wait
cmp dword [esp], 0
jne 0x45bf73
mov dl, 0x2d
mov ax, 0x11
call fcn.0048841c
test eax, eax
je 0x45c401
jmp 0x45bf90
mov eax, dword [0x4be784]
mov eax, dword [eax + 0x177c]
mov dword [esp + 0xc], eax
mov eax, dword [0x4be784]
mov edx, dword [esp]
mov dword [eax + 0x177c], edx
mov eax, ebx
call fcn.0044f5d0
test al, al
je 0x45c401
mov eax, dword [ebx + 0xc]
mov dl, 1
call fcn.00419834
test al, al
je 0x45c401
mov eax, dword [0x4be564]
fild qword [eax]
mov eax, dword [ebx + 0xc]
fild qword [eax + 0x10]
fcompp
fnstsw ax
sahf
jbe 0x45bfe5
mov eax, dword [0x4be564]
push dword [eax + 4]
push dword [eax]
mov eax, ebx
call fcn.0045aad8
test al, al
je 0x45c401
mov byte [esp + 5], 1
jmp 0x45bfea
mov byte [esp + 5], 0
mov eax, dword [0x4be570]
cmp byte [eax], 0
jne 0x45c01e
push 0
push 0
mov ax, word [ebx + 0x424]
xor ecx, ecx
mov dl, 4
call fcn.00430df8
test al, al
jne 0x45c01e
mov eax, dword [0x4bead4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_DeleteFileA_1
jmp 0x45c401
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x10]
mov eax, 0xe000
call fcn.00402504
mov edi, eax
mov edx, 0xe000
mov eax, edi
call fcn.004066e4
mov ax, 0x2d
call fcn.004aa600
xor edx, edx
call fcn.004ad8ec
mov eax, dword [0x4be564]
mov edx, dword [eax]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x24], edx
mov eax, dword [0x4be784]
mov eax, dword [eax + 0x177c]
dec eax
mov ecx, 0xe000
cdq
idiv ecx
inc eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 8]
test eax, eax
jle 0x45c15e
mov dword [esp + 0x2c], eax
mov esi, 1
cmp esi, dword [esp + 8]
jge 0x45c0a9
mov ebp, 0xe000
jmp 0x45c0c0
mov eax, dword [0x4be784]
mov eax, dword [eax + 0x177c]
dec eax
mov ecx, 0xe000
cdq
idiv ecx
mov ebp, edx
inc ebp
push ebp
lea edx, [esp + 0x24]
mov eax, dword [ebx + 0xc]
mov ecx, edi
call fcn.0041c768
mov edx, dword [0x4be654]
mov dword [edx], eax
mov eax, dword [0x4be654]
cmp ebp, dword [eax]
jle 0x45c0f4
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0xc]
mov ax, 5
call fcn.004acdac
jmp 0x45c3c0
mov eax, dword [0x4be654]
fild dword [eax]
fild qword [esp + 0x10]
faddp st(1)
fistp qword [esp + 0x10]
wait
mov eax, dword [0x4be784]
fild dword [eax + 0x177c]
fild qword [esp + 0x10]
fdivrp st(1)
fmul dword [0x45c414]
call fcn.004028e8
mov edx, dword [0x4be344]
mov byte [edx], al
mov eax, dword [0x4be344]
mov al, byte [eax]
mov edx, dword [0x4be8d0]
cmp al, byte [edx]
je 0x45c140
call fcn.004b5c48
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x45c3c0
inc esi
dec dword [esp + 0x2c]
jne 0x45c09c
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x14]
call fcn.004adbe0
fild qword [ebx + 0x14c]
fcomp dword [0x45c418]
fnstsw ax
sahf
jne 0x45c1c3
mov eax, dword [0x4bef04]
cmp byte [eax], 0
jne 0x45c1c3
mov eax, dword [0x4be564]
mov edx, dword [eax]
mov dword [ebx + 0x144], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0x148], edx
mov eax, dword [0x4be784]
fild dword [eax + 0x177c]
mov eax, dword [0x4be564]
fild qword [eax]
faddp st(1)
fsub dword [0x45c410]
fistp qword [ebx + 0x14c]
wait
jmp 0x45c1f9
mov esi, 1
lea edx, [ebx + 0x144]
fild qword [edx]
mov eax, dword [0x4be564]
fild qword [eax]
fcompp
fnstsw ax
sahf
ja 0x45c1f0
mov eax, dword [0x4be784]
fild dword [eax + 0x177c]
fild qword [edx]
faddp st(1)
fistp qword [edx]
wait
inc esi
add edx, 8
cmp esi, 3
jne 0x45c1ce
mov edx, dword [0x4be564]
push dword [edx + 4]
push dword [edx]
mov edx, dword [0x4be784]
fild dword [edx + 0x177c]
mov eax, dword [ebx + 0xc]
fild qword [eax + 0x10]
faddp st(1)
fsub dword [0x45c410]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.00418ac4
cmp byte [esp + 5], 0
je 0x45c372
mov eax, dword [0x4bead4]
mov eax, dword [eax]
mov ecx, 0x8000000
mov edx, 0x80000000
call fcn.004adc9c
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x10]
mov ax, 0xf8
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
xor edx, edx
call fcn.004ad8ec
mov eax, dword [esp + 0x28]
call fcn.004b22b8
fistp qword [esp + 0x18]
wait
mov eax, dword [0x4be784]
fild dword [eax + 0x177c]
mov eax, dword [0x4be564]
fild qword [eax]
faddp st(1)
fistp qword [esp + 0x20]
wait
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push 0xe000
push edi
mov eax, dword [esp + 0x30]
push eax
call sub.kernel32.dll__hread
mov esi, eax
mov dword [esp + 0x30], esi
xor eax, eax
mov dword [esp + 0x34], eax
fild qword [esp + 0x30]
fild qword [esp + 0x10]
faddp st(1)
fistp qword [esp + 0x10]
wait
push esi
lea edx, [esp + 0x24]
mov eax, dword [ebx + 0xc]
mov ecx, edi
call fcn.0041c768
mov ebp, eax
fild qword [esp + 0x10]
fild qword [esp + 0x18]
fdivp st(1)
fmul dword [0x45c414]
call fcn.004028e8
mov edx, dword [0x4be344]
mov byte [edx], al
mov eax, dword [0x4be344]
mov al, byte [eax]
mov edx, dword [0x4be8d0]
cmp al, byte [edx]
je 0x45c31c
call fcn.004b5c48
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x45c32f
cmp esi, ebp
jbe 0x45c33e
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x45c3c0
test esi, esi
je 0x45c34a
cmp esi, ebp
je 0x45c2ad
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x14]
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4bead4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_DeleteFileA_1
call fcn.004adbe0
mov eax, edi
call fcn.00402524
cmp dword [esp], 0
jle 0x45c38e
mov eax, dword [0x4be784]
mov edx, dword [esp + 0xc]
mov dword [eax + 0x177c], edx
mov eax, ebx
call fcn.0044dab4
call fcn.00427d08
mov eax, dword [0x4be784]
cmp byte [eax + 0x18f1], 4
jbe 0x45c3b2
mov eax, dword [ebx + 0xc]
mov byte [eax + 0xd2], 0
mov eax, ebx
call fcn.0046ee24
mov byte [esp + 4], 1
jmp 0x45c401
mov eax, dword [ebx + 0xc]
mov edx, dword [eax + 0x1a0]
call dword [edx + 0x14]
mov eax, edi
call fcn.00402524
cmp dword [esp], 0
jle 0x45c3e8
mov eax, dword [0x4be784]
mov edx, dword [esp + 0xc]
mov dword [eax + 0x177c], edx
mov eax, dword [0x4bead4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_DeleteFileA_1
call fcn.004adbe0
mov eax, ebx
call fcn.0046ee24
mov al, byte [esp + 4]
add esp, 0x38
pop ebp
pop edi
pop esi
pop ebx
ret