Function at 0x47ac20
Capabilities:
Write file on windows

Disassembly:
push edi
push 0x50
call fcn.004afb55
push edi
push 0x4b
call fcn.004afb55
push edi
push 1
call fcn.004afb55
push edi
push 2
call fcn.004afb55
movsx eax, byte [esi]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 1]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 2]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 3]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 4]
add esp, 0x40
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 5]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 6]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 7]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 8]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 9]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0xa]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0xb]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0xc]
add esp, 0x40
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0xd]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0xe]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0xf]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x10]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x11]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x12]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x13]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x14]
add esp, 0x40
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x15]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x16]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x17]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x18]
push edi
push eax
call fcn.004afb55
mov ecx, dword [esi + 0x18]
shr ecx, 8
movsx edx, cl
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x20]
push edi
push eax
call fcn.004afb55
mov ecx, dword [esi + 0x20]
shr ecx, 8
movsx edx, cl
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x24]
add esp, 0x40
push edi
push eax
call fcn.004afb55
mov ecx, dword [esi + 0x24]
shr ecx, 8
movsx edx, cl
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x28]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x29]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x2a]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x2b]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x30]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x31]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x32]
add esp, 0x40
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x33]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x34]
push edi
push edx
call fcn.004afb55
movsx eax, byte [esi + 0x35]
push edi
push eax
call fcn.004afb55
movsx ecx, byte [esi + 0x36]
push edi
push ecx
call fcn.004afb55
movsx edx, byte [esi + 0x37]
push edi
push edx
call fcn.004afb55
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x48]
push edi
push eax
push 1
push ecx
call fcn.004b2229
add esp, 0x40
cmp eax, dword [esi + 0x18]
jne 0x47ae7e
mov eax, dword [esi + 0x20]
test eax, eax
je 0x47ae5f
mov edx, dword [esi + 0x40]
push edi
push eax
push 1
push edx
call fcn.004b2229
add esp, 0x10
cmp eax, dword [esi + 0x20]
jne 0x47ae7e
mov eax, dword [esi + 0x24]
test eax, eax
je 0x47ae7b
push edi
push eax
mov eax, dword [esi + 0x44]
push 1
push eax
call fcn.004b2229
add esp, 0x10
cmp eax, dword [esi + 0x24]
jne 0x47ae7e
xor eax, eax
ret
mov eax, 0xa
ret