Function at 0x438284
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.004082dc
mov esi, dword [0x4448c8]
xor eax, eax
push ebp
push 0x43850e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [esi + 0xa4], 0
je 0x4382da
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
call fcn.00408fd8
mov eax, dword [ebp - 0x30]
xor edx, edx
call fcn.0042838c
mov eax, dword [ebp - 4]
call fcn.004380dc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x4382f6
cmp dword [ebp - 0x10], 0
ja 0x43831f
jmp 0x4382f8
jg 0x43831f
cmp byte [esi + 0xa4], 0
je 0x4384ce
xor edx, edx
mov eax, 0x438528
call fcn.0042838c
xor edx, edx
xor eax, eax
call fcn.0042838c
jmp 0x4384ce
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.00438188
test al, al
jne 0x438355
cmp byte [esi + 0xa4], 0
je 0x4384ce
xor edx, edx
mov eax, 0x4385c4
call fcn.0042838c
xor edx, edx
xor eax, eax
call fcn.0042838c
jmp 0x4384ce
lea eax, [ebp - 8]
mov edx, dword [0x420c8c]
call fcn.0040b244
push 0x100000
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x420c8c]
call fcn.0040b120
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov bl, 1
xor edx, edx
mov eax, 0x438660
call fcn.004281a0
jmp 0x438465
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_SetFilePointerEx
push 0
lea eax, [ebp - 0x2c]
push eax
push 0x100000
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, 0x100000
adc edx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp byte [esi + 0xa4], 0
je 0x438465
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x4383f9
cmp eax, dword [ebp - 0x10]
jbe 0x438407
jmp 0x4383fb
jle 0x438407
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fild qword [ebp - 0x10]
fdivp st(1)
fmul dword [0x438664]
fstp qword [ebp - 0x28]
wait
jmp 0x43844f
movzx eax, bl
mov ecx, 0xa
xor edx, edx
div ecx
test edx, edx
jne 0x438442
lea edx, [ebp - 0x34]
movzx eax, bl
call fcn.00418c24
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.004281a0
jmp 0x43844e
xor edx, edx
mov eax, 0x438674
call fcn.004281a0
inc ebx
movzx eax, bl
mov dword [ebp - 0x38], eax
fild dword [ebp - 0x38]
fld qword [ebp - 0x28]
fucompp
wait
fnstsw ax
sahf
jp 0x43841b
jae 0x43841b
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x43847b
cmp eax, dword [ebp - 0x10]
jb 0x43839f
jmp 0x438481
jl 0x43839f
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x40]
mov ecx, 0x43867c
mov edx, dword [ebp - 4]
call fcn.00408d28
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00421434
mov eax, dword [ebp - 0x3c]
call fcn.00408ca0
push eax
call sub.kernel32.dll_DeleteFileW
cmp byte [esi + 0xa4], 0
je 0x4384ce
xor edx, edx
xor eax, eax
call fcn.0042838c
xor edx, edx
xor eax, eax
call fcn.0042838c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438515
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.00408298
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00408228
lea eax, [ebp - 8]
mov edx, dword [0x420c8c]
call fcn.0040b244
lea eax, [ebp - 4]
call fcn.00408210
pop eax
jmp eax