Function at 0x4d4770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [0x58bb30]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov eax, dword [esp + 0x44]
push 0x55a9fc
push eax
call fcn.004fd330
mov ebx, eax
test ebx, ebx
sete cl
mov byte [esi + 0x3044], cl
test ebx, ebx
je 0x4d49e8
push ebx
push 1
lea eax, [esp + 0x28]
push 0x16
push eax
call fcn.0053bd85
add esp, 0x10
cmp word [esp + 0x20], 0
jne 0x4d49df
cmp word [esp + 0x22], 1
jne 0x4d49df
push 0
push 0
push ebx
call fcn.0053c19b
movzx eax, word [esp + 0x30]
dec eax
shl eax, 4
add eax, 0x16
push eax
call fcn.00538da8
mov esi, eax
add esp, 0x10
mov dword [esp + 0x18], esi
test esi, esi
je 0x4d49df
movzx edx, word [esp + 0x24]
dec edx
push edi
lea ecx, [edx*8]
sub ecx, edx
lea ecx, [ecx*2 + 0x14]
push ecx
call fcn.00538da8
mov edi, eax
add esp, 4
mov dword [esp + 0xc], edi
test edi, edi
jne 0x4d4854
push esi
call fcn.00537b6f
push ebx
call fcn.005386bd
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052f708
add esp, 0x34
ret 0xc
movzx eax, word [esp + 0x28]
push ebp
push ebx
shl eax, 4
push 1
add eax, 6
push eax
push esi
call fcn.0053bd85
mov eax, dword [esi]
add esp, 0x10
mov dword [edi], eax
xor ebp, ebp
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
xor eax, eax
cmp ax, word [esp + 0x2c]
jae 0x4d4948
mov ecx, dword [esp + 0x10]
lea edi, [esi + 0xe]
add ecx, 0x12
mov dword [esp + 0x18], ecx
mov eax, dword [edi - 8]
mov dword [ecx - 0xc], eax
mov eax, dword [edi - 4]
mov dword [ecx - 8], eax
mov eax, dword [edi]
mov dword [ecx - 4], eax
lea eax, [ebp + 1]
mov word [ecx], ax
mov eax, dword [edi]
push eax
mov dword [esp + 0x18], eax
call fcn.00538da8
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x4d49ad
push 0
push dword [edi + 4]
push ebx
call fcn.0053c19b
push ebx
push 1
push dword [esp + 0x28]
push esi
call fcn.0053bd85
add esp, 0x1c
lea eax, [ebp + 1]
movzx eax, ax
push dword [esp + 0x14]
push esi
push 0x400
push eax
push 3
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push dword [esp + 0x24]
mov esi, eax
call fcn.00537b6f
add esp, 4
test esi, esi
je 0x4d49ad
mov ecx, dword [esp + 0x18]
inc ebp
movzx eax, word [esp + 0x2c]
add ecx, 0xe
add edi, 0x10
mov dword [esp + 0x18], ecx
cmp ebp, eax
jl 0x4d48a6
mov edi, dword [esp + 0x10]
push ebx
call fcn.005386bd
movzx ecx, word [esp + 0x30]
add esp, 4
lea eax, [ecx*8]
sub eax, ecx
lea eax, [eax*2 + 6]
push eax
movzx eax, word [esp + 0x54]
push edi
push 0x400
push eax
push 0xe
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push dword [esp + 0x20]
mov esi, eax
call fcn.00537b6f
push edi
call fcn.00537b6f
add esp, 8
test esi, esi
setne al
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052f708
add esp, 0x34
ret 0xc
push ebx
call fcn.005386bd
push dword [esp + 0x24]
call fcn.00537b6f
push dword [esp + 0x18]
call fcn.00537b6f
add esp, 0xc
xor al, al
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0052f708
add esp, 0x34
ret 0xc
push ebx
call fcn.005386bd
add esp, 4
mov ecx, dword [esp + 0x38]
xor al, al
pop esi
pop ebx
xor ecx, esp
call fcn.0052f708
add esp, 0x34
ret 0xc