Function at 0x4b7880
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push 0x50
call fcn.004e0a51
push edi
push 0x4b
call fcn.004e0a51
push edi
push 1
call fcn.004e0a51
push edi
push 2
call fcn.004e0a51
movsx eax, byte [esi]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 1]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 3]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 4]
add esp, 0x40
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 5]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 6]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 7]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 8]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0xa]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0xc]
add esp, 0x40
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0xc]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0xe]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0xf]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x10]
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x10]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x12]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x13]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x14]
add esp, 0x40
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x14]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x16]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x18]
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x18]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x20]
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x20]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x24]
add esp, 0x40
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x24]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x28]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x29]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x2a]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x2b]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x30]
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x30]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x32]
add esp, 0x40
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x33]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x34]
push edi
push eax
call fcn.004e0a51
mov eax, dword [esi + 0x34]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x36]
push edi
push eax
call fcn.004e0a51
movsx eax, byte [esi + 0x37]
push edi
push eax
call fcn.004e0a51
push edi
push dword [esi + 0x18]
push 1
push dword [esi + 0x48]
call fcn.004e2dae
add esp, 0x40
cmp eax, dword [esi + 0x18]
jne 0x4b7b00
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4b7ae0
push edi
push eax
push 1
push dword [esi + 0x40]
call fcn.004e2dae
add esp, 0x10
cmp eax, dword [esi + 0x20]
jne 0x4b7b00
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4b7afb
push edi
push eax
push 1
push dword [esi + 0x44]
call fcn.004e2dae
add esp, 0x10
cmp eax, dword [esi + 0x24]
jne 0x4b7b00
pop edi
xor eax, eax
pop esi
ret
pop edi
mov eax, 0xa
pop esi
ret