Function at 0x46de78
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov byte [esp], dl
mov ebx, eax
mov byte [esp + 1], 0
cmp byte [ebx + 0x557], 0
jne 0x46e136
mov eax, ebx
call fcn.0047e098
mov eax, dword [0x48d39c]
fistp qword [eax]
wait
cmp byte [esp], 0
jne 0x46df63
mov eax, dword [0x48d39c]
fild qword [eax]
fadd dword [0x46e144]
fild qword [ebx + 0x18]
fcompp
fnstsw ax
sahf
jne 0x46df1d
mov eax, dword [0x48d39c]
push dword [eax + 4]
push dword [eax]
call fcn.00410208
mov edx, eax
mov eax, dword [0x48d830]
call fcn.00405c48
mov ax, 0x2b
call fcn.0040bc04
mov edx, dword [0x48d830]
call fcn.0040f5a0
mov eax, dword [0x48da44]
mov edx, 2
call fcn.00411d74
cmp al, 1
jne 0x46df1d
mov eax, dword [0x48d39c]
fild qword [eax]
fadd dword [0x46e144]
mov eax, dword [0x48d39c]
fistp qword [eax]
wait
mov eax, dword [0x48d39c]
push dword [eax + 4]
push dword [eax]
call fcn.00410208
mov edx, eax
mov eax, dword [0x48d830]
call fcn.00405c48
mov ax, 0x2c
call fcn.0040bc04
mov edx, dword [0x48d830]
call fcn.0040f5a0
mov eax, dword [0x48da44]
mov edx, 0x13
call fcn.00411d74
test al, al
je 0x46e136
mov eax, ebx
call fcn.00464bb4
test al, al
je 0x46e136
lea eax, [ebx + 0xc]
mov dl, 1
call fcn.004246b0
test al, al
je 0x46e136
mov eax, dword [0x48d39c]
fild qword [eax]
fild qword [ebx + 0x18]
fcompp
fnstsw ax
sahf
jbe 0x46dfb5
mov eax, dword [0x48d39c]
push dword [eax + 4]
push dword [eax]
mov eax, ebx
call fcn.0046cdc0
test al, al
je 0x46e136
mov byte [esp + 0x24], 1
jmp 0x46dfba
mov byte [esp + 0x24], 0
mov eax, ebx
xor edx, edx
call fcn.0046d8a0
mov esi, eax
test esi, esi
jle 0x46e11d
cmp byte [esp + 0x24], 0
je 0x46e10a
mov eax, dword [0x48d7e4]
mov eax, dword [eax]
mov ecx, 0x8000000
mov edx, 0x80000000
call fcn.0040eba4
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xc]
call fcn.00428760
mov ax, 0xf8
call fcn.0040bc04
mov edx, eax
mov eax, dword [0x48d948]
call fcn.00405c48
mov eax, dword [0x48d948]
mov dl, 2
call fcn.0040e810
mov eax, dword [esp + 0x20]
call fcn.00412ed4
fistp qword [esp + 0x10]
wait
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
mov eax, dword [0x48d39c]
fild qword [eax]
faddp st(1)
fistp qword [esp + 0x18]
wait
mov eax, 0xe000
call fcn.004024e8
mov edi, eax
push 0xe000
push edi
mov eax, dword [esp + 0x28]
push eax
call sub.kernel32.dll__hread
mov esi, eax
mov dword [esp + 0x28], esi
fild dword [esp + 0x28]
fild qword [esp + 8]
faddp st(1)
fistp qword [esp + 8]
wait
push esi
lea edx, [esp + 0x1c]
lea eax, [ebx + 0xc]
mov ecx, edi
call fcn.00426720
mov ebp, eax
fild qword [esp + 8]
fild qword [esp + 0x10]
fdivp st(1)
fmul dword [0x46e148]
call fcn.004028a0
mov edx, dword [0x48d1d8]
mov byte [edx], al
mov eax, dword [0x48d1e8]
inc word [eax]
mov eax, dword [0x48d1e8]
movzx eax, word [eax]
mov ecx, 0x19
xor edx, edx
div ecx
test edx, edx
jne 0x46e0ca
call fcn.0040f494
mov eax, dword [0x48d1d8]
mov al, byte [eax]
mov edx, dword [0x48d668]
cmp al, byte [edx]
je 0x46e0e0
call fcn.00414c64
test esi, esi
je 0x46e0ec
cmp esi, ebp
je 0x46e055
lea eax, [ebx + 0xc]
call fcn.00428820
mov eax, edi
call fcn.00402508
mov eax, dword [esp + 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040eb04
mov eax, ebx
call fcn.004632ec
call fcn.00444994
mov byte [ebx + 0x8f], 0
mov eax, dword [0x48d7e4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_DeleteFileA_1
mov eax, ebx
call fcn.0047d4c8
mov byte [esp + 1], 1
mov al, byte [esp + 1]
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret