Function at 0x4ce53c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ce81b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x32c], 0
je 0x4ce70e
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4ce6d1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 1
jne 0x4ce5a1
lea eax, [ebp - 0x14]
jmp 0x4ce5a5
mov eax, dword [ebp - 0x14]
dec eax
cmp word [eax], 0xa0d
je 0x4ce6c1
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0xa
jne 0x4ce6c1
xor edx, edx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x14]
sub edx, ebx
mov dword [ebp - 0x18], edx
cmp word [eax], 0xa0d
je 0x4ce6ae
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x4bc]
sub al, 1
jb 0x4ce5f4
je 0x4ce67d
dec al
je 0x4ce623
dec al
je 0x4ce64a
jmp 0x4ce6ae
push 0
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0x2c]
push eax
push 2
push 0x565ba8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4ce6ae
mov edx, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov edx, 0x565ba8
mov ecx, 2
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
jmp 0x4ce6ae
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov edx, 0x565ba8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov ecx, 2
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
jmp 0x4ce6ae
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x28], eax
mov edx, 0x565ba8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov ecx, 2
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
xor ebx, ebx
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp + 0xc], eax
jmp 0x4ce6c2
inc ebx
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x4ce596
cmp dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
sub eax, ebx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x28]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
cmp ebx, dword [ebp - 0x28]
je 0x4ce700
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4ce7c1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jmp 0x4ce7c1
cmp dword [ebp + 0xc], 0
jbe 0x4ce7c1
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4bc]
cmp eax, 5
ja case.default.0x4ce72b
jmp dword [eax*4 + 0x4ce732]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4ce7bb
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4ce7bb
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x4ce7bb
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x4ce7bb
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x10], eax
jmp 0x4ce7bb
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4ce7bb
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
je 0x4ce7ed
lea edx, [ebp - 0x34]
mov eax, 0x6230
call fcn.0040a7bc
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x4d0744]
call fcn.0040e328
call fcn.004041fc
cmp byte [ebp + 8], 1
jne 0x4ce805
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.004ce340
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ce822
lea eax, [ebp - 0x34]
call fcn.00404894
ret