Function at 0x55de24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 4], 0x848c24
mov eax, dword [ebp + 0x10]
mov edx, dword [0x6f4078]
cmp eax, edx
jbe 0x55decf
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6f4078]
sub ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
shl eax, 0xb
cdq
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.0066c86c
add esp, 0xc
mov edx, dword [0x80cdac]
test edx, edx
je 0x55de96
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0055e760
add esp, 0xc
test eax, eax
jne 0x55dec4
mov eax, 0xfffffffe
jmp 0x55e0e5
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 0x55deb8
cmp eax, dword [ebp - 0x14]
je 0x55dec4
mov eax, 0xfffffffe
jmp 0x55e0e5
mov edx, dword [ebp - 0x24]
add dword [0x6f4078], edx
jmp 0x55df30
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6f4078]
cmp ecx, eax
jae 0x55df30
mov edx, dword [0x80cdac]
test edx, edx
je 0x55defe
push 0
push 0x930
mov eax, dword [ebp + 0x10]
xor edx, edx
call fcn.006744e4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0x55df15
push 0
push 0x800
mov eax, dword [ebp + 0x10]
xor edx, edx
call fcn.006744e4
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.0045d900
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [0x6f4078], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 8], edx
jmp 0x55e0c8
cmp dword [ebp - 8], 0
jne 0x55df52
cmp dword [ebp - 0xc], 0x11fff
jbe 0x55df5d
jmp 0x55df54
jle 0x55df5d
mov eax, 0x12000
xor edx, edx
jmp 0x55df63
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.0066c86c
add esp, 0xc
push dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push eax
push 1
push dword [ebp - 4]
call fcn.0045d9fc
add esp, 0x10
test eax, eax
jne 0x55dfb4
or eax, 0xffffffff
jmp 0x55e0e5
mov edx, dword [0x80cdac]
test edx, edx
je 0x55dfed
push 0
push 0x800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00674507
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0055e760
add esp, 0xc
test eax, eax
jne 0x55e01b
mov eax, 0xfffffffe
jmp 0x55e0e5
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 0x55e00f
cmp eax, dword [ebp - 0x14]
je 0x55e01b
mov eax, 0xfffffffe
jmp 0x55e0e5
push 0
push 0x800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00674507
add dword [0x6f4078], eax
mov eax, dword [0x6f4078]
xor edx, edx
mov dword [0x826584], eax
mov dword [0x826588], edx
mov eax, dword [0x826584]
mov edx, dword [0x826588]
mov dword [ebp - 0x2c], eax
sub edx, 0x80000000
mov dword [ebp - 0x28], edx
fild qword [ebp - 0x2c]
fadd qword [0x55e0ec]
mov eax, dword [0x82657c]
mov edx, dword [0x826580]
mov dword [ebp - 0x34], eax
sub edx, 0x80000000
mov dword [ebp - 0x30], edx
fild qword [ebp - 0x34]
fadd qword [0x55e0ec]
fdivp st(1)
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004412e0
add esp, 8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jne 0x55e0aa
cmp eax, dword [ebp - 0x14]
jbe 0x55e0ba
jmp 0x55e0ac
jle 0x55e0ba
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
sbb dword [ebp - 8], edx
jmp 0x55e0c8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x55e0da
cmp dword [ebp - 0xc], 0
ja 0x55df41
jmp 0x55e0e0
jg 0x55df41
mov eax, 1
mov esp, ebp
pop ebp
ret