Function at 0x46974b
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
push 0x50
call fcn.00484e0f
push edi
push 0x4b
call fcn.00484e0f
push edi
push 1
call fcn.00484e0f
push edi
push 2
call fcn.00484e0f
mov esi, dword [esp + 0x2c]
movsx eax, byte [esi]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 1]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 2]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 3]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 4]
add esp, 0x40
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 5]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 6]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 7]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 8]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 9]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0xa]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0xb]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0xc]
add esp, 0x40
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0xd]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0xe]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0xf]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x10]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x11]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x12]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x13]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x14]
add esp, 0x40
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x15]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x16]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x17]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x18]
push edi
push eax
call fcn.00484e0f
mov eax, dword [esi + 0x18]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x20]
push edi
push eax
call fcn.00484e0f
mov eax, dword [esi + 0x20]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x24]
add esp, 0x40
push edi
push eax
call fcn.00484e0f
mov eax, dword [esi + 0x24]
shr eax, 8
movsx eax, al
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x28]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x29]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x2a]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x2b]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x30]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x31]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x32]
add esp, 0x40
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x33]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x34]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x35]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x36]
push edi
push eax
call fcn.00484e0f
movsx eax, byte [esi + 0x37]
push edi
push eax
call fcn.00484e0f
push edi
push dword [esi + 0x18]
push 1
push dword [esi + 0x48]
call fcn.004830cf
add esp, 0x40
cmp eax, dword [esi + 0x18]
jne 0x4699b0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x469991
push edi
push eax
push 1
push dword [esi + 0x40]
call fcn.004830cf
add esp, 0x10
cmp eax, dword [esi + 0x20]
jne 0x4699b0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4699ac
push edi
push eax
push 1
push dword [esi + 0x44]
call fcn.004830cf
add esp, 0x10
cmp eax, dword [esi + 0x24]
jne 0x4699b0
xor eax, eax
jmp 0x4699b3
push 0xa
pop eax
pop edi
pop esi
ret