Function at 0x4a9450
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x579531
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
push eax
mov dword [ebp - 0x4c], ecx
call fcn.004aa520
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4a96a5
cmp byte [ebx], 0
mov byte [ebp - 0x41], 0xa
je 0x4a94af
mov byte [ebx], 0
jmp 0x4a94c0
push edi
push 1
lea eax, [ebp - 0x41]
push 1
push eax
call fcn.004ad424
add esp, 0x10
mov eax, dword [esi + 0x10]
lea ebx, [esi + 0x10]
test eax, eax
je 0x4a951e
cmp dword [esi + 0x14], 0x10
jb 0x4a94d2
mov esi, dword [esi]
push edi
push eax
push 1
push esi
call fcn.004ad424
push edi
push 1
lea eax, [ebp - 0x41]
push 1
push eax
call fcn.004ad424
xor esi, esi
add esp, 0x20
mov byte [ebp - 0x42], 0x3d
cmp dword [ebx], esi
jbe 0x4a950d
push edi
push 1
lea eax, [ebp - 0x42]
push 1
push eax
call fcn.004ad424
inc esi
add esp, 0x10
cmp esi, dword [ebx]
jb 0x4a94f7
push edi
push 1
lea eax, [ebp - 0x41]
push 1
push eax
call fcn.004ad424
add esp, 0x10
mov ebx, dword [ebp - 0x48]
push ebx
push str._____BEGIN__s_____
push edi
call fcn.004b0a53
push edi
push 1
lea eax, [ebp - 0x41]
push 1
push eax
call fcn.004ad424
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push dword [ebp - 0x4c]
push eax
call fcn.004a9390
add esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a965e
nop
mov esi, 0x4c
cmp eax, esi
cmovb esi, eax
cmp dword [ebp - 0x14], 0x10
push edi
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004ad424
push edi
push 1
lea eax, [ebp - 0x41]
push 1
push eax
call fcn.004ad424
mov eax, dword [ebp - 0x18]
add esp, 0x20
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405c20
mov esi, eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4a962c
cmp dword [ebp - 0x14], 0x10
jb 0x4a95c5
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jae 0x4a95f3
mov eax, dword [esi + 0x10]
inc eax
je 0x4a960f
push eax
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004ad590
add esp, 0xc
jmp 0x4a960f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x4a9641
push dword [ebp - 0x40]
call fcn.004ad196
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test eax, eax
jne 0x4a9560
push ebx
push str._____END__s_____
push edi
call fcn.004b0a53
push edi
push 1
lea eax, [ebp - 0x41]
push 1
push eax
call fcn.004ad424
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x4a9693
push dword [ebp - 0x28]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret