Function at 0x4e91a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6505f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00643d62
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x20], 0
push ebp
call fcn.00476a10
add esp, 4
lea ecx, [esp + 0x10]
push eax
mov eax, dword [0x73aaac]
push eax
push 0x69dab0
push ecx
call fcn.00643d50
mov edx, dword [esp + 0x20]
push 0x69a9ec
push edx
call dword [fcn.0065f1b8]
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4e9225
push eax
push eax
mov eax, dword [esi + 0x20]
push 0x10
push 0x6b8630
push eax
call fcn.00471ac0
add esp, 0x14
jmp 0x4e9500
mov ecx, dword [0x703658]
mov ebx, dword [fcn.0065f1b4]
push edi
push 0x28
push 1
push ecx
call ebx
push edi
push 2
push 1
push 0x6adc98
call ebx
add esp, 0x20
test ebp, ebp
push edi
push 4
push 1
jne 0x4e9287
lea edx, [esi + 0x89e]
push edx
call ebx
push edi
push 4
lea eax, [esi + 0x8a6]
push 1
push eax
call ebx
movsx eax, word [esi + 0x8c2]
mov edx, dword [esi + 0x8d2]
push edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 1
push ecx
push 1
push edx
jmp 0x4e92bb
lea eax, [esi + 0x8a2]
push eax
call ebx
push edi
push 4
lea ecx, [esi + 0x8aa]
push 1
push ecx
call ebx
movsx eax, word [esi + 0x8c4]
push edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x8d6]
shl edx, 1
push edx
push 1
push eax
call ebx
add esp, 0x30
push edi
call dword [fcn.0065f1c0]
push ebp
call fcn.00476a10
mov ecx, dword [0x73aaac]
add esp, 8
lea edx, [esp + 0x10]
push eax
push ecx
push 0x69d984
push edx
call fcn.00643d50
mov eax, dword [esp + 0x20]
mov ebp, dword [fcn.0065f1a0]
push eax
call ebp
mov edi, dword [esp + 0x3c]
push edi
call fcn.00476a10
mov ecx, dword [0x73aaac]
add esp, 0x18
lea edx, [esp + 0x10]
push eax
push ecx
push 0x69d970
push edx
call fcn.00643d50
mov eax, dword [esp + 0x20]
push eax
call ebp
add esp, 0x14
test edi, edi
jne 0x4e9446
push 0x6b8624
lea ecx, [esp + 0x18]
push 0x73aaac
push ecx
call fcn.00643ea6
mov eax, dword [eax]
mov byte [esp + 0x20], 1
push eax
call fcn.004729e0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.00643d26
mov ecx, 0xfa0
xor eax, eax
mov edi, 0x6cf8f8
push 0x6b8618
lea edx, [esp + 0x18]
push 0x73aaac
rep stosd dword es:[edi], eax
push edx
mov dword [0x828a98], eax
call fcn.00643ea6
mov eax, dword [eax]
mov byte [esp + 0x20], 2
push eax
call fcn.004729e0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.00643d26
push 0x6b54e0
lea eax, [esp + 0x18]
push 0x73aaac
push eax
call fcn.00643ea6
mov eax, dword [eax]
mov byte [esp + 0x20], 3
push eax
call fcn.004729e0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call fcn.00643d26
mov ecx, dword [0x73aaac]
lea edx, [esp + 0x10]
push ecx
push 0x6b8604
push edx
call fcn.00643d50
mov eax, dword [esp + 0x1c]
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x14]
push 0x6b85f4
push 0x73aaac
push ecx
call fcn.00643ea6
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00643d26
push 0x6b85e4
lea edx, [esp + 0x18]
push 0x73aaac
push edx
call fcn.00643ea6
mov eax, dword [eax]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00643d26
mov si, word [esi + 0x8c2]
jmp 0x4e944d
mov si, word [esi + 0x8c4]
movsx eax, si
lea esi, [eax + eax*4]
push esi
call fcn.00643b70
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
push eax
call fcn.00476a10
mov ecx, dword [0x73aaac]
add esp, 8
lea edx, [esp + 0x10]
push eax
push ecx
push 0x6a1530
push edx
call fcn.00643d50
mov eax, dword [esp + 0x20]
push 0x69a9ec
push eax
call dword [fcn.0065f1b8]
mov edi, eax
add esp, 0x18
test edi, edi
je 0x4e94f7
push edi
push esi
push 1
push ebp
call ebx
push edi
call dword [fcn.0065f1c0]
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00476a10
mov edx, dword [0x73aaac]
add esp, 0x18
push eax
push edx
lea eax, [esp + 0x18]
push 0x6a1544
push eax
call fcn.00643d50
mov ecx, dword [esp + 0x20]
push 0x69a9ec
push ecx
call dword [fcn.0065f1b8]
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4e9515
push ebp
call fcn.00643cfc
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00643d26
xor eax, eax
jmp 0x4e9542
push edi
push esi
push 1
push ebp
call ebx
push edi
call dword [fcn.0065f1c0]
push ebp
call fcn.00643cfc
add esp, 0x18
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.00643d26
mov eax, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4