Function at 0x4a4660
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x528af4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push esi
push edi
mov dword [esp + 0x18], eax
mov esi, ecx
mov eax, dword [esp + 0x44]
push 0x50db48
push eax
call fcn.004c4600
mov edi, eax
test edi, edi
sete cl
mov byte [esi + 0x3028], cl
test cl, cl
jne 0x4a46ee
push edi
push 1
lea eax, [esp + 0x28]
push 0x16
push eax
call fcn.004f63b2
add esp, 0x10
cmp word [esp + 0x20], 0
jne 0x4a46e5
cmp word [esp + 0x22], 1
jne 0x4a46e5
push 0
push 0
push edi
call fcn.004f679d
movzx eax, word [esp + 0x30]
dec eax
shl eax, 4
add eax, 0x16
push eax
call fcn.004f2e54
mov esi, eax
add esp, 0x10
mov dword [esp + 0xc], esi
test esi, esi
jne 0x4a4703
push edi
call fcn.004f2a17
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x34
ret 0xc
movzx ecx, word [esp + 0x24]
dec ecx
push ebx
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*2 + 0x14]
push eax
call fcn.004f2e54
mov ebx, eax
add esp, 4
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x4a4752
push esi
call fcn.004f252e
push edi
call fcn.004f2a17
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x34
ret 0xc
movzx eax, word [esp + 0x28]
push ebp
dec eax
push edi
shl eax, 4
push 1
add eax, 0x16
push eax
push esi
call fcn.004f63b2
mov eax, dword [esi]
add esp, 0x10
mov dword [ebx], eax
xor ebp, ebp
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
cmp ax, word [esp + 0x2c]
jae 0x4a4847
mov ecx, dword [esp + 0x10]
lea ebx, [esi + 0xe]
add ecx, 0x12
mov dword [esp + 0x1c], ecx
mov eax, dword [ebx - 8]
mov dword [ecx - 0xc], eax
mov eax, dword [ebx - 4]
mov dword [ecx - 8], eax
mov eax, dword [ebx]
mov dword [ecx - 4], eax
lea eax, [ebp + 1]
mov word [ecx], ax
mov eax, dword [ebx]
push eax
mov dword [esp + 0x1c], eax
call fcn.004f2e54
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x4a48af
push 0
push dword [ebx + 4]
push edi
call fcn.004f679d
push edi
push 1
push dword [esp + 0x2c]
push esi
call fcn.004f63b2
add esp, 0x1c
lea eax, [ebp + 1]
movzx eax, ax
push dword [esp + 0x18]
push esi
push 0x400
push eax
push 3
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push dword [esp + 0x24]
mov esi, eax
call fcn.004f252e
add esp, 4
test esi, esi
je 0x4a48af
mov ecx, dword [esp + 0x1c]
inc ebp
movzx eax, word [esp + 0x2c]
add ecx, 0xe
add ebx, 0x10
mov dword [esp + 0x1c], ecx
cmp ebp, eax
jl 0x4a47a5
mov ebx, dword [esp + 0x10]
push edi
call fcn.004f2a17
movzx ecx, word [esp + 0x30]
add esp, 4
dec ecx
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*2 + 0x14]
push eax
movzx eax, word [esp + 0x54]
push ebx
push 0x400
push eax
push 0xe
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push dword [esp + 0x14]
mov esi, eax
call fcn.004f252e
push ebx
call fcn.004f252e
add esp, 8
xor eax, eax
test esi, esi
setne al
pop ebp
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ebbd8
add esp, 0x34
ret 0xc
push edi
call fcn.004f2a17
push dword [esp + 0x18]
call fcn.004f252e
push dword [esp + 0x18]
call fcn.004f252e
mov ecx, dword [esp + 0x4c]
add esp, 0xc
xor al, al
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004ebbd8
add esp, 0x34
ret 0xc