Function at 0x49c8c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x4c0390]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [esp + 0x40c]
push edi
mov edi, dword [esp + 0x414]
push edi
push 0x50
call fcn.004a28d5
push edi
push 0x4b
call fcn.004a28d5
push edi
push 1
call fcn.004a28d5
push edi
push 2
call fcn.004a28d5
movsx eax, byte [esi]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 1]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 2]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 3]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 4]
add esp, 0x40
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 5]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 6]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 7]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 8]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 9]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0xa]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0xb]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0xc]
add esp, 0x40
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0xd]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0xe]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0xf]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x10]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x11]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x12]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x13]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x14]
add esp, 0x40
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x15]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x16]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x17]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x18]
push edi
push eax
call fcn.004a28d5
mov ecx, dword [esi + 0x18]
shr ecx, 8
movsx edx, cl
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x20]
push edi
push eax
call fcn.004a28d5
mov ecx, dword [esi + 0x20]
shr ecx, 8
movsx edx, cl
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x24]
add esp, 0x40
push edi
push eax
call fcn.004a28d5
mov ecx, dword [esi + 0x24]
shr ecx, 8
movsx edx, cl
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x28]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x29]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x2a]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x2b]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x30]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x31]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x32]
add esp, 0x40
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x33]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x34]
push edi
push edx
call fcn.004a28d5
movsx eax, byte [esi + 0x35]
push edi
push eax
call fcn.004a28d5
movsx ecx, byte [esi + 0x36]
push edi
push ecx
call fcn.004a28d5
movsx edx, byte [esi + 0x37]
push edi
push edx
call fcn.004a28d5
mov ecx, dword [esi + 0x48]
add esp, 0x30
push 0x400
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.0044f3e0
mov edx, dword [esi + 0x18]
push edi
push edx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.004a0202
add esp, 0x10
cmp eax, dword [esi + 0x18]
jne 0x49cb5a
mov eax, dword [esi + 0x20]
test eax, eax
je 0x49cb3a
mov ecx, dword [esi + 0x40]
push edi
push eax
push 1
push ecx
call fcn.004a0202
add esp, 0x10
cmp eax, dword [esi + 0x20]
jne 0x49cb5a
mov eax, dword [esi + 0x24]
test eax, eax
je 0x49cb56
mov edx, dword [esi + 0x44]
push edi
push eax
push 1
push edx
call fcn.004a0202
add esp, 0x10
cmp eax, dword [esi + 0x24]
jne 0x49cb5a
xor eax, eax
jmp 0x49cb5f
mov eax, 0xa
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
call fcn.0049eaa6
add esp, 0x404
ret 8