Function at 0x55e510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
mov dword [ebp - 4], 0x8565f8
mov eax, dword [ebp + 0x10]
mov edx, dword [0x6f88f8]
cmp eax, edx
jbe 0x55e69e
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6f88f8]
sub ecx, eax
mov dword [ebp - 0x24], ecx
push 0
push 0x800
mov eax, dword [ebp - 0x24]
cdq
call fcn.00674900
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
jmp 0x55e684
cmp dword [ebp - 8], 0
jne 0x55e567
cmp dword [ebp - 0xc], 0x11fff
jbe 0x55e572
jmp 0x55e569
jle 0x55e572
mov eax, 0x12000
xor edx, edx
jmp 0x55e578
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add eax, 0x7ff
adc edx, 0
and eax, 0xfffff800
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
call fcn.0066cc88
add esp, 0xc
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp edx, dword [ebp - 0x10]
jne 0x55e5cb
cmp eax, dword [ebp - 0x14]
je 0x55e5d7
mov eax, 0xfffffffe
jmp 0x55e7b1
push 0
push 0x800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00674923
add dword [0x6f88f8], eax
mov eax, dword [0x6f88f8]
xor edx, edx
mov dword [0x833f58], eax
mov dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x2c], eax
sub edx, 0x80000000
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
fadd qword [0x55e7b8]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x34], eax
sub edx, 0x80000000
mov dword [ebp - 0x30], edx
fild qword [ebp - 0x34]
fadd qword [0x55e7b8]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jne 0x55e666
cmp eax, dword [ebp - 0x14]
jbe 0x55e676
jmp 0x55e668
jle 0x55e676
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
sbb dword [ebp - 8], edx
jmp 0x55e684
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x55e696
cmp dword [ebp - 0xc], 0
ja 0x55e556
jmp 0x55e6d4
jg 0x55e556
jmp 0x55e6d4
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6f88f8]
cmp ecx, eax
jae 0x55e6d4
push 0
push 0x800
mov eax, dword [ebp + 0x10]
xor edx, edx
call fcn.00674900
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.0045dbe8
add esp, 0x10
mov dword [ebp - 0x14], 0x800
mov dword [ebp - 0x10], 0
push 2
push 0xffffffffffffffff
push 0xfffff800
push dword [ebp + 8]
call fcn.0045dbe8
add esp, 0x10
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push eax
push 1
push dword [ebp - 4]
call fcn.0045dce4
add esp, 0x10
test eax, eax
jne 0x55e716
or eax, 0xffffffff
jmp 0x55e7b1
push 0
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x20]
xor edx, edx
cmp edx, dword [ebp - 0x10]
jne 0x55e738
cmp eax, dword [ebp - 0x14]
je 0x55e741
mov eax, 0xfffffffe
jmp 0x55e7b1
inc dword [0x6f88f8]
mov eax, dword [0x6f88f8]
xor edx, edx
mov dword [0x833f58], eax
mov dword [0x833f5c], edx
mov eax, dword [0x833f58]
mov edx, dword [0x833f5c]
mov dword [ebp - 0x3c], eax
sub edx, 0x80000000
mov dword [ebp - 0x38], edx
fild qword [ebp - 0x3c]
fadd qword [0x55e7b8]
mov eax, dword [0x833f50]
mov edx, dword [0x833f54]
mov dword [ebp - 0x44], eax
sub edx, 0x80000000
mov dword [ebp - 0x40], edx
fild qword [ebp - 0x44]
fadd qword [0x55e7b8]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00441458
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret