Function at 0x4a9aa0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x644d80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74d890]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x38]
xor ecx, ecx
mov eax, esi
test esi, esi
je 0x4a9d13
lea esp, [esp]
cmp dword [eax + 0x10], 0
je 0x4a9ae7
inc ecx
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x4a9ae0
test ecx, ecx
je 0x4a9d13
mov edi, dword [esp + 0x34]
push edi
mov ecx, ebx
call fcn.004a9360
mov ebp, eax
mov dword [esp + 0x1c], ebp
test ebp, ebp
je 0x4a9d13
push 0x6714a4
push edi
call fcn.0061849d
mov edx, eax
add esp, 8
mov dword [esp + 0x38], edx
test edx, edx
jne 0x4a9b2e
push ebp
jmp 0x4a9d0c
mov edi, dword [ebp]
jmp 0x4a9b3b
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x14]
mov ebp, dword [ebp]
mov ecx, dword [esp + 0x1c]
add ebp, eax
cmp eax, dword [ecx + 4]
jge 0x4a9cd8
cmp dword [esi + 0x10], 0
je case.default.0x4a9b79
push edx
mov eax, ebp
sub eax, edi
push eax
push 1
push edi
call fcn.00618355
mov eax, dword [esi + 0x10]
add esp, 0x10
mov edi, ebp
cmp eax, 3
ja case.default.0x4a9b79
jmp dword [eax*4 + 0x4a9d2c]
lea ecx, [esp + 0x18]
call fcn.00402500
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x2c], 1
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004a98c0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.004a98c0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 0x10
push edx
push eax
mov ecx, ebx
call fcn.004a8aa0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4a9bfc
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
jmp case.default.0x4a9b79
test byte [esi + 8], 0x40
jne 0x4a9c25
mov ecx, dword [esp + 0x38]
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.004a8c30
mov ecx, dword [esp + 0x20]
push ecx
mov edi, eax
call fcn.005e9ab2
add esp, 4
jmp 0x4a9bd8
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
push ecx
push eax
mov eax, dword [esi + 0x18]
push edx
push eax
push ebp
mov ecx, ebx
call fcn.004a9820
mov ecx, dword [esp + 0x20]
push ecx
mov edi, eax
call fcn.005e9ab2
add esp, 4
jmp 0x4a9bd8
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov ecx, ebx
call fcn.004a8980
test byte [esi + 8], 0x40
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x20], eax
jne 0x4a9c86
push eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.004a8c30
mov edx, dword [esp + 0x20]
push edx
mov edi, eax
call fcn.005e9ab2
add esp, 4
jmp case.default.0x4a9b79
mov edx, dword [esi + 0xc]
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.004a9820
mov edx, dword [esp + 0x20]
push edx
mov edi, eax
call fcn.005e9ab2
add esp, 4
jmp case.default.0x4a9b79
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x18]
push 0x66e97c
push eax
push ecx
push ebp
mov ecx, ebx
call fcn.004a8c30
mov edi, eax
jmp case.default.0x4a9b79
call fcn.0061b703
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4a9b33
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
mov ecx, edi
sub ecx, edx
cmp ecx, eax
jge 0x4a9cfa
mov ecx, dword [esp + 0x38]
push ecx
sub eax, edi
add eax, edx
push eax
push 1
push edi
call fcn.00618355
add esp, 0x10
mov edx, dword [esp + 0x38]
push edx
call fcn.00618177
mov eax, dword [esp + 0x20]
add esp, 4
push eax
mov ecx, ebx
call fcn.004a8950
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8