Function at 0x4a0b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee808
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x51eed4]
xor eax, ebp
mov dword [ebp - 0x20], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
call fcn.004a0840
mov word [ebp - 0x42], ax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x42]
push ecx
call fcn.004a08e0
add esp, 8
movzx edx, al
test edx, edx
je 0x4a0b62
lea eax, [ebp + 8]
push eax
call fcn.004a0e30
add esp, 4
jmp 0x4a0e13
mov ecx, dword [ebp - 0x74]
call fcn.004a23c0
test eax, eax
je 0x4a0bac
mov ecx, dword [ebp - 0x74]
call fcn.004a23c0
mov esi, eax
mov ecx, dword [ebp - 0x74]
call fcn.004a2480
cmp esi, eax
jae 0x4a0bac
lea ecx, [ebp + 8]
push ecx
call fcn.004a08d0
add esp, 4
mov si, ax
mov ecx, dword [ebp - 0x74]
call fcn.004a25b0
mov word [eax], si
mov ax, word [ebp + 8]
jmp 0x4a0e13
mov edx, dword [ebp - 0x74]
cmp dword [edx + 0x4c], 0
jne 0x4a0bc4
call fcn.004a0840
jmp 0x4a0e13
mov eax, dword [ebp - 0x74]
cmp dword [eax + 0x3c], 0
jne 0x4a0c14
mov ecx, dword [ebp - 0x74]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.004a08d0
add esp, 4
movzx ecx, ax
push ecx
call fcn.004a0e70
add esp, 8
movzx edx, al
test edx, edx
je 0x4a0bfd
mov ax, word [ebp + 8]
mov word [ebp - 0x76], ax
jmp 0x4a0c06
call fcn.004a0840
mov word [ebp - 0x76], ax
mov ax, word [ebp - 0x76]
jmp 0x4a0e13
mov dword [ebp - 0x10], 8
lea ecx, [ebp + 8]
push ecx
call fcn.004a08d0
add esp, 4
mov word [ebp - 0x18], ax
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.0040c160
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00480e30
add esi, eax
push esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
push eax
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x74]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x3c]
call fcn.004a5fb0
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x7c], 0
jl 0x4a0de1
cmp dword [ebp - 0x7c], 1
jle 0x4a0cb6
cmp dword [ebp - 0x7c], 3
je 0x4a0d96
jmp 0x4a0de1
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov dword [ebp - 0x40], edx
je 0x4a0d22
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
push 1
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00487b20
mov ecx, eax
call fcn.004a2d60
push eax
call fcn.004c110b
add esp, 0x10
cmp dword [ebp - 0x40], eax
je 0x4a0d22
call fcn.004a0840
mov word [ebp - 0x66], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov ax, word [ebp - 0x66]
jmp 0x4a0e13
mov ecx, dword [ebp - 0x74]
mov byte [ecx + 0x42], 1
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
cmp edx, eax
je 0x4a0d53
mov cx, word [ebp + 8]
mov word [ebp - 0x68], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov ax, word [ebp - 0x68]
jmp 0x4a0e13
cmp dword [ebp - 0x40], 0
jbe 0x4a0d5b
jmp 0x4a0d94
lea ecx, [ebp - 0x3c]
call fcn.00480e30
cmp eax, 0x20
jae 0x4a0d76
push 0
push 8
lea ecx, [ebp - 0x3c]
call fcn.00409410
jmp 0x4a0d94
call fcn.004a0840
mov word [ebp - 0x6a], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov ax, word [ebp - 0x6a]
jmp 0x4a0e13
jmp 0x4a0dff
mov edx, dword [ebp - 0x74]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, word [ebp - 0x18]
push ecx
call fcn.004a0e70
add esp, 8
movzx edx, al
test edx, edx
je 0x4a0dbb
mov ax, word [ebp + 8]
mov word [ebp - 0x7e], ax
jmp 0x4a0dc4
call fcn.004a0840
mov word [ebp - 0x7e], ax
mov cx, word [ebp - 0x7e]
mov word [ebp - 0x6c], cx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov ax, word [ebp - 0x6c]
jmp 0x4a0e13
call fcn.004a0840
mov word [ebp - 0x6e], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov ax, word [ebp - 0x6e]
jmp 0x4a0e13
jmp 0x4a0c3e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004be1d6
mov esp, ebp
pop ebp
ret 4