Function at 0x435628
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffcb4
mov byte [esp], al
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
xor eax, eax
mov al, byte [esp]
add ax, 0x87
dec eax
call fcn.004aa600
push eax
mov ax, 0x5f
call fcn.004aa600
pop edx
call fcn.004ae1b0
mov ax, 0x5e
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bedb0]
mov ecx, 0x15
call fcn.004b12b8
test al, al
je 0x435ac0
mov bl, 1
lea ebp, [esp + 0x48]
lea esi, [esp + 4]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [0x4beccc]
mov byte [eax], bl
call fcn.004ae0a4
mov eax, dword [0x4be468]
mov byte [eax], 1
mov al, 9
call fcn.00421294
test al, al
jne 0x4356c9
cmp bl, 2
jne 0x435ac0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x435ac0
mov edx, dword [0x4be538]
mov eax, ebp
call fcn.004b81b0
mov eax, dword [0x4be538]
mov ecx, 0x8000000
mov edx, 0x80000000
call fcn.004adc9c
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x435718
mov edx, dword [0x4be538]
mov ax, 1
call fcn.004acdac
cmp bl, 2
jne 0x435ac0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x435ac0
mov eax, dword [esi]
call fcn.004b22b8
mov eax, dword [esp + 0x18]
fistp qword [eax]
wait
inc ebx
add dword [esp + 0x18], 8
add esi, 4
add ebp, 0x100
cmp bl, 3
jne 0x435692
fild qword [esp + 0x20]
fild qword [esp + 0x28]
fcompp
fnstsw ax
sahf
je 0x435765
mov ax, 0x60
call fcn.004aa600
mov edx, 3
call fcn.004b12a8
jmp 0x435ac0
cmp byte [esp], 2
jne 0x435798
push dword [esp + 0x24]
push dword [esp + 0x24]
push 0
push 2
call fcn.004af060
test eax, eax
je 0x435798
mov ax, 0xc8
call fcn.004aa600
mov edx, 3
call fcn.004b12a8
jmp 0x435ac0
fild qword [esp + 0x20]
fild qword [esp + 0x28]
faddp st(1)
add esp, 0xfffffff8
fistp qword [esp]
wait
xor eax, eax
call fcn.004adfd4
test al, al
je 0x435ac0
mov eax, 1
call fcn.004ae058
mov al, 0x15
call fcn.00421294
test al, al
jne 0x4357e6
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x435ac0
mov ax, 0x61
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
xor edx, edx
call fcn.004ad8ec
mov edx, dword [0x4be538]
lea eax, [esp + 0x248]
call fcn.004b81b0
push 0
mov eax, dword [0x4be538]
push eax
call sub.kernel32.dll__lcreat
mov dword [esp + 0xc], eax
mov bl, 3
lea esi, [esp + 0x3c]
mov eax, 0xe000
call fcn.00402504
mov dword [esi], eax
add esi, 4
dec bl
jne 0x435830
mov bl, 2
lea edi, [esp + 4]
lea ebp, [esp + 0x3c]
lea esi, [esp + 0x30]
push 0x7000
mov eax, dword [ebp]
push eax
mov eax, dword [edi]
push eax
call sub.kernel32.dll__hread
mov dword [esi], eax
add esi, 4
add ebp, 4
add edi, 4
dec bl
jne 0x435851
mov eax, dword [esp + 0x30]
mov dword [esp + 0x348], eax
fild dword [esp + 0x348]
fild qword [esp + 0x10]
faddp st(1)
fistp qword [esp + 0x10]
wait
cmp byte [esp], 1
jne 0x4358d8
mov dx, word [esp + 0x30]
test dx, dx
jbe 0x435939
mov ax, 1
movzx ecx, ax
mov ebx, dword [esp + 0x3c]
mov bl, byte [ebx + ecx - 1]
push ebx
movzx ebx, ax
mov esi, ebx
add esi, esi
mov edi, dword [esp + 0x48]
pop ebx
mov byte [edi + esi - 2], bl
mov ebx, dword [esp + 0x40]
mov cl, byte [ebx + ecx - 1]
push ecx
pop ecx
mov byte [edi + esi - 1], cl
inc eax
dec dx
jne 0x4358a6
jmp 0x435939
mov edx, eax
sar edx, 1
jns 0x4358e1
adc edx, 0
test dx, dx
jbe 0x435939
mov ax, 1
movzx ecx, ax
add ecx, ecx
mov ebx, dword [esp + 0x3c]
mov bl, byte [ebx + ecx - 2]
push ebx
movzx ebx, ax
mov esi, ebx
shl esi, 2
mov edi, dword [esp + 0x48]
pop ebx
mov byte [edi + esi - 4], bl
mov ebx, dword [esp + 0x3c]
mov bl, byte [ebx + ecx - 1]
push ebx
pop ebx
mov byte [edi + esi - 3], bl
mov ebx, dword [esp + 0x40]
mov bl, byte [ebx + ecx - 2]
push ebx
pop ebx
mov byte [edi + esi - 2], bl
mov ebx, dword [esp + 0x40]
mov cl, byte [ebx + ecx - 1]
push ecx
pop ecx
mov byte [edi + esi - 1], cl
inc eax
dec dx
jne 0x4358ea
mov eax, dword [esp + 0x30]
add eax, eax
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll__hwrite
mov ebx, eax
mov dword [esp + 0x38], ebx
mov eax, dword [esp + 0x30]
add eax, eax
cmp ebx, eax
jge 0x435971
lea edx, [esp + 0x248]
mov ax, 5
call fcn.004acdac
jmp 0x4359da
fild qword [esp + 0x10]
fmul dword [0x435acc]
fild qword [esp + 0x20]
fdivp st(1)
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 0x4359a4
call fcn.004b5c48
call fcn.004ae0a4
mov eax, dword [0x4bed48]
cmp byte [eax], 0
je 0x4359cc
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [esp + 0x248]
push eax
call sub.kernel32.dll_DeleteFileA_1
jmp 0x4359da
cmp dword [esp + 0x30], 0x7000
jge 0x435843
mov bl, 3
lea esi, [esp + 0x3c]
mov eax, dword [esi]
call fcn.00402524
add esi, 4
dec bl
jne 0x4359e0
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004adbe0
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x435a41
mov ax, 0xfe
call fcn.004aa600
mov edx, eax
mov eax, dword [0x4bec98]
call fcn.004b81b0
mov eax, dword [0x4bec98]
mov dl, 2
call fcn.004ad8ec
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_FlushFileBuffers
call fcn.004adbe0
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [0x4bed48]
cmp byte [eax], 0
jne 0x435ac0
fild qword [esp + 0x10]
fmul dword [0x435ad0]
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004b21b4
mov edx, eax
mov eax, dword [0x4beb38]
call fcn.004b81b0
mov ax, 0x87
call fcn.004aa600
push eax
mov eax, dword [0x4beb38]
push eax
call sub.kernel32.dll_lstrcatA
mov ax, 0x1eb
call fcn.004aa600
lea edx, [esp + 0x248]
call fcn.004ae1b0
mov edx, dword [0x4beb38]
mov eax, dword [0x4bedb0]
call fcn.004ae1b0
mov eax, dword [0x4bedb0]
mov edx, 4
call fcn.004b12a8
add esp, 0x34c
pop ebp
pop edi
pop esi
pop ebx
ret