Function at 0x4da450
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 0x4da72f
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 0x4da622
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 0x4da5e5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 1
jne 0x4da4b5
lea eax, [ebp - 0x14]
jmp 0x4da4b9
mov eax, dword [ebp - 0x14]
dec eax
cmp word [eax], 0xa0d
je 0x4da5d5
mov edx, dword [ebp - 0x14]
cmp byte [edx], 0xa
jne 0x4da5d5
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 0x4da5c2
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x4bc]
sub al, 1
jb 0x4da508
je 0x4da591
dec al
je 0x4da537
dec al
je 0x4da55e
jmp 0x4da5c2
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 0x576c3c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4da5c2
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, 0x576c3c
mov ecx, 2
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
call dword [ebx + 8]
mov dword [ebp - 0x2c], eax
jmp 0x4da5c2
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, 0x576c3c
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 0x4da5c2
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, 0x576c3c
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 0x4da5d6
inc ebx
inc dword [ebp - 0x14]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x30]
jne 0x4da4aa
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 0x4da614
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4da6d5
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
jmp 0x4da6d5
cmp dword [ebp + 0xc], 0
jbe 0x4da6d5
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4bc]
cmp eax, 5
ja case.default.0x4da63f
jmp dword [eax*4 + 0x4da646]
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4da6cf
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 0x4da6cf
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 0x4da6cf
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 0x4da6cf
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 0x4da6cf
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4da6cf
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 0x4da701
lea edx, [ebp - 0x34]
mov eax, 0x6230
call fcn.0040a7bc
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x4dc658]
call fcn.0040e328
call fcn.004041fc
cmp byte [ebp + 8], 1
jne 0x4da719
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp + 0x10]
mov eax, dword [ebp - 4]
call fcn.004da254
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4da736
lea eax, [ebp - 0x34]
call fcn.00404894
ret