Function at 0x55e240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov dword [ebp - 4], 0x8565f8
mov eax, dword [ebp + 0x10]
mov edx, dword [0x6f88f8]
cmp eax, edx
jbe 0x55e2eb
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6f88f8]
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.0066cc88
add esp, 0xc
mov edx, dword [0x81a780]
test edx, edx
je 0x55e2b2
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0055eb7c
add esp, 0xc
test eax, eax
jne 0x55e2e0
mov eax, 0xfffffffe
jmp 0x55e501
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 0x55e2d4
cmp eax, dword [ebp - 0x14]
je 0x55e2e0
mov eax, 0xfffffffe
jmp 0x55e501
mov edx, dword [ebp - 0x24]
add dword [0x6f88f8], edx
jmp 0x55e34c
mov ecx, dword [ebp + 0x10]
mov eax, dword [0x6f88f8]
cmp ecx, eax
jae 0x55e34c
mov edx, dword [0x81a780]
test edx, edx
je 0x55e31a
push 0
push 0x930
mov eax, dword [ebp + 0x10]
xor edx, edx
call fcn.00674900
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jmp 0x55e331
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 eax, dword [ebp + 0x10]
mov dword [0x6f88f8], eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 8], edx
jmp 0x55e4e4
cmp dword [ebp - 8], 0
jne 0x55e36e
cmp dword [ebp - 0xc], 0x11fff
jbe 0x55e379
jmp 0x55e370
jle 0x55e379
mov eax, 0x12000
xor edx, edx
jmp 0x55e37f
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 dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
push eax
push 1
push dword [ebp - 4]
call fcn.0045dce4
add esp, 0x10
test eax, eax
jne 0x55e3d0
or eax, 0xffffffff
jmp 0x55e501
mov edx, dword [0x81a780]
test edx, edx
je 0x55e409
push 0
push 0x800
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00674923
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.0055eb7c
add esp, 0xc
test eax, eax
jne 0x55e437
mov eax, 0xfffffffe
jmp 0x55e501
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 0x55e42b
cmp eax, dword [ebp - 0x14]
je 0x55e437
mov eax, 0xfffffffe
jmp 0x55e501
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 [0x55e508]
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 [0x55e508]
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 0x55e4c6
cmp eax, dword [ebp - 0x14]
jbe 0x55e4d6
jmp 0x55e4c8
jle 0x55e4d6
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
sbb dword [ebp - 8], edx
jmp 0x55e4e4
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
jne 0x55e4f6
cmp dword [ebp - 0xc], 0
ja 0x55e35d
jmp 0x55e4fc
jg 0x55e35d
mov eax, 1
mov esp, ebp
pop ebp
ret