Function at 0x404b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a449
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x38], eax
je 0x404dda
cmp byte [ebx + 0x3d], al
je 0x404dda
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x404bed
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [ebp - 0x70]
call fcn.00402d50
lea eax, [ebx + 0x40]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404560
mov edi, eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404560
mov esi, eax
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00405140
mov edi, dword [ebp - 0x5c]
mov ecx, esi
mov ebx, eax
call fcn.00405140
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
lea edx, [edi + ebx]
push edx
mov ecx, dword [ecx + 0x38]
push eax
push dword [ebp - 0x1c]
mov esi, dword [ecx]
call dword [esi + 0x20]
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00401700
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.00401700
sub esi, 0
je 0x404c7b
sub esi, 1
jne 0x404d91
mov edi, dword [ebp - 0x18]
jmp 0x404c82
mov edi, dword [ebp - 0x18]
mov byte [edi + 0x3d], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404560
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00405140
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
sub esi, eax
call fcn.00401700
test esi, esi
je 0x404ce6
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404560
mov byte [ebp - 4], 4
mov ecx, eax
mov ebx, dword [ebp - 0x14]
or ebx, 1
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
call fcn.00405140
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00419ab0
add esp, 0x10
cmp esi, eax
je 0x404ce9
mov byte [ebp - 0xd], 1
jmp 0x404ced
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x404d07
and ebx, 0xfffffffe
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], ebx
call fcn.00401700
cmp byte [ebp - 0xd], 0
jne 0x404dbd
cmp byte [edi + 0x3d], 0
je 0x404d96
test esi, esi
jne 0x404c08
mov ecx, dword [ebp - 0x5c]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 8
jbe 0x404db3
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x404db3
mov edx, dword [ebp - 0x58]
cmp edx, esi
jae 0x404d78
push ecx
push esi
lea ecx, [ebp - 0x70]
call fcn.00405760
mov ecx, dword [ebp - 0x5c]
test esi, esi
je 0x404c08
push 0
push 8
push ecx
lea ecx, [ebp - 0x70]
call fcn.004052d0
cmp dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x5c], esi
cmovae eax, dword [ebp - 0x6c]
mov byte [eax + esi], 0
jmp 0x404c08
test esi, esi
jne 0x404d54
cmp edx, 0x10
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
mov byte [eax], 0
jmp 0x404c08
sub esi, 2
jne 0x404dbd
lea ecx, [ebp - 0x70]
mov bl, 1
call fcn.00402c90
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.00406930
lea ecx, [ebp - 0x70]
xor bl, bl
call fcn.00402c90
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret