Function at 0x404b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ebe8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47a070]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov edx, 0xffff
cmp dx, di
sete al
test al, al
je 0x404bb3
cmp di, dx
je 0x404bac
movzx eax, di
jmp 0x404e12
xor eax, eax
jmp 0x404e12
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x404be7
mov edx, dword [ebx + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x404be2
lea ecx, [esi - 1]
mov ax, di
mov dword [edx], ecx
mov edx, dword [ebx + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x404e12
mov edx, 0xffff
cmp dword [ebx + 0x4c], 0
jne 0x404bf5
mov ax, dx
jmp 0x404e12
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x404c15
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
cmp dword [ebx + 0x38], 0
jne 0x404c3f
push dword [ebx + 0x4c]
push edi
call fcn.00441c9b
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x404e12
mov eax, ecx
jmp 0x404e12
push 0
movzx eax, di
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405e10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
mov ecx, dword [ebx + 0x38]
lea edx, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
add eax, edi
mov esi, dword [ecx]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebx + 0x38]
push eax
push edx
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x2a]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [esi + 0x1c]
test eax, eax
js 0x404df5
cmp eax, 1
jg 0x404dba
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x30]
cmovae eax, edx
sub esi, eax
je 0x404cee
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0044278b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x404d82
lea eax, [ebp - 0x2c]
mov byte [ebx + 0x3e], 1
cmp dword [ebp - 0x34], eax
jne 0x404da9
mov edi, dword [ebp - 0x18]
test esi, esi
jne 0x404c70
cmp edi, 0x20
jae 0x404d9c
or eax, 0xffffffff
sub eax, edi
cmp eax, 8
jbe 0x404d92
lea esi, [edi + 8]
cmp esi, 0xfffffffe
ja 0x404d92
cmp ecx, esi
jae 0x404d69
push edi
push esi
lea ecx, [ebp - 0x28]
call fcn.00407560
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
test esi, esi
je 0x404c70
cmp ecx, 0x10
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x28]
movq qword [edi + eax], xmm0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 0x18], esi
cmovae eax, dword [ebp - 0x28]
mov byte [esi + eax], 0
jmp 0x404c6a
test esi, esi
jne 0x404d40
cmp ecx, 0x10
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax], 0
jmp 0x404c6a
mov eax, 0xffff
movzx eax, ax
movzx eax, ax
movzx esi, ax
jmp 0x404dfd
push str.string_too_long
call fcn.0040fea6
mov eax, 0xffff
movzx eax, ax
movzx esi, ax
jmp 0x404dfd
mov eax, dword [ebp + 8]
movzx eax, ax
movzx eax, ax
movzx eax, ax
movzx esi, ax
jmp 0x404dfd
cmp eax, 3
jne 0x404df5
push dword [ebx + 0x4c]
push dword [ebp - 0x2c]
call fcn.00441c9b
mov ecx, 0xffff
add esp, 8
cmp ax, cx
je 0x404de8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
movzx eax, ax
movzx eax, ax
movzx esi, ax
jmp 0x404dfd
mov eax, ecx
mov ecx, dword [ebp - 0x14]
movzx eax, ax
movzx esi, ax
jmp 0x404dfd
mov ecx, dword [ebp - 0x14]
mov esi, 0xffff
cmp ecx, 0x10
jb 0x404e0f
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00406ce0
mov ax, si
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.00423334
mov esp, ebp
pop ebp
ret 4