Function at 0x434e54
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdc4
mov ebx, dword [0x4be4c4]
mov al, 0xd
call fcn.00421294
test al, al
je 0x435245
mov edx, dword [0x4be538]
lea eax, [esp + 0x130]
call fcn.004b81b0
lea eax, [esp + 0x130]
call fcn.004b2314
mov eax, dword [0x4be314]
fistp qword [eax]
wait
mov eax, dword [0x4be314]
fild qword [eax]
fcomp dword [0x435250]
fnstsw ax
sahf
je 0x435245
mov dl, 7
mov ax, 0x28
call fcn.0048841c
test eax, eax
je 0x435245
mov eax, dword [0x4be314]
fild qword [eax]
fsub dword [0x435254]
mov eax, dword [0x4beed4]
fild qword [eax]
fdivp st(1)
call fcn.004028f4
add eax, 1
adc edx, 0
mov dword [esp + 0x230], eax
mov dword [esp + 0x234], edx
fild qword [esp + 0x230]
fistp qword [ebx]
wait
fld xword [0x435258]
fild qword [ebx]
fcompp
fnstsw ax
sahf
ja 0x434eaf
fild qword [ebx]
call fcn.004028e8
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x130]
mov ecx, 0x8000000
mov edx, 0x80000000
call fcn.004adc9c
mov dword [esp], eax
cmp dword [esp], 0xffffffff
jne 0x434f49
lea edx, [esp + 0x130]
mov ax, 1
call fcn.004acdac
jmp 0x435245
mov eax, 0xe000
call fcn.00402504
mov dword [esp + 0x28], eax
mov ax, 0x5b
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
lea eax, [esp + 0x130]
call fcn.004aed10
mov edx, eax
mov eax, dword [0x4bec98]
mov ecx, 0x3c
call fcn.004b820c
mov eax, dword [0x4be784]
movzx eax, byte [eax + 0x188c]
lea eax, [eax + eax*4]
mov edx, dword [0x4be720]
lea eax, [edx + eax]
push eax
mov eax, dword [0x4bec98]
push eax
call sub.kernel32.dll_lstrcatA
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov al, byte [esp + 0x1c]
mov edx, dword [0x4be4e0]
mov byte [edx], al
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x435233
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], 1
mov al, byte [esp + 0x18]
mov edx, dword [0x4beccc]
mov byte [edx], al
cmp dword [esp + 0x18], 1
jle 0x434ff3
call fcn.004ae424
call fcn.004ae0a4
mov al, 0x16
call fcn.00421294
test al, al
je 0x435233
mov edx, dword [0x4be538]
lea eax, [esp + 0x30]
call fcn.004b81b0
lea eax, [esp + 0x130]
push eax
lea eax, [esp + 0x34]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x435041
mov ax, 0x13c
call fcn.004aa600
mov edx, 3
call fcn.004b12a8
jmp 0x434ff3
push 0
lea eax, [esp + 0x34]
push eax
call sub.kernel32.dll__lcreat
mov dword [esp + 4], eax
cmp dword [esp + 4], 0xffffffff
jne 0x43506a
lea edx, [esp + 0x30]
mov ax, 3
call fcn.004acdac
jmp 0x435233
mov eax, dword [0x4bec98]
xor edx, edx
call fcn.004ad8ec
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
jge 0x435094
mov eax, dword [0x4beed4]
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x14], edx
jmp 0x4350cb
mov eax, dword [0x4be314]
fild qword [eax]
fsub dword [0x435254]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov eax, dword [0x4beed4]
push dword [eax + 4]
push dword [eax]
call fcn.004af060
inc eax
mov dword [esp + 0x238], eax
fild dword [esp + 0x238]
fistp qword [esp + 0x10]
wait
fild qword [esp + 0x10]
fsub dword [0x435254]
fdiv dword [0x435264]
call fcn.004028f4
inc eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x24]
test edi, edi
jle 0x435216
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x24]
jge 0x43510a
mov ebx, 0xe000
jmp 0x43512a
fild qword [esp + 0x10]
fsub dword [0x435254]
add esp, 0xfffffff8
fistp qword [esp]
wait
push 0
push 0xe000
call fcn.004af060
mov ebx, eax
inc ebx
push ebx
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll__hread
mov esi, eax
push ebx
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll__hwrite
mov ebp, eax
cmp ebx, esi
jle 0x435162
lea edx, [esp + 0x130]
mov ax, 2
call fcn.004acdac
cmp ebx, ebp
jle 0x435173
lea edx, [esp + 0x30]
mov ax, 5
call fcn.004acdac
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x43518a
cmp ebx, esi
jg 0x43518a
cmp ebx, ebp
jle 0x4351bc
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov ax, 0x11b
call fcn.004aa600
mov edx, 2
call fcn.004b12a8
cmp al, 1
jne 0x4351b5
lea eax, [esp + 0x30]
push eax
call sub.kernel32.dll_DeleteFileA_1
call fcn.004adbe0
jmp 0x435233
mov dword [esp + 0x238], ebx
fild dword [esp + 0x238]
fild qword [esp + 8]
faddp st(1)
fistp qword [esp + 8]
wait
fild qword [esp + 8]
mov eax, dword [0x4be314]
fild qword [eax]
fdivp st(1)
fmul dword [0x435268]
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 0x43520b
call fcn.004b5c48
inc dword [esp + 0x20]
dec edi
jne 0x4350f9
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004adbe0
inc dword [esp + 0x18]
dec dword [esp + 0x2c]
jne 0x434fdb
mov eax, dword [esp + 0x28]
call fcn.00402524
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
add esp, 0x23c
pop ebp
pop edi
pop esi
pop ebx
ret