Function at 0x4d4940
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404c]
mov eax, 0x404c
call fcn.00530230
push 0xffffffffffffffff
push 0x5530e5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58cb30]
xor eax, ebp
mov dword [ebp + 0x4048], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp + 0x4054]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x18], esi
call fcn.0048f110
mov dword [ebp - 4], 0
lea eax, [ebp + 0x3048]
push 0x800
push eax
lea eax, [ebp + 0x2048]
mov byte [ebx + 0x3044], 0
push eax
mov ecx, 0x5c8968
call fcn.004dac40
lea eax, [ebp + 0x2048]
push eax
call fcn.00491350
test al, al
jne 0x4d49d7
xor eax, eax
mov word [ebp + 0x2048], ax
lea eax, [ebp + 0x3048]
push eax
call fcn.00491350
test al, al
jne 0x4d49f0
xor eax, eax
mov word [ebp + 0x3048], ax
xor eax, eax
cmp word [esi + 0x93fa], 0
mov word [ebp + 0x1048], ax
lea eax, [esi + 0x93fa]
je 0x4d4a1b
push 0x800
push eax
lea eax, [ebp + 0x2048]
push eax
call fcn.004bdae0
cmp word [esi + 0xa3fa], 0
lea eax, [esi + 0xa3fa]
je 0x4d4a3d
push 0x800
push eax
lea eax, [ebp + 0x3048]
push eax
call fcn.004bdae0
cmp word [esi + 0xb3fa], 0
lea eax, [esi + 0xb3fa]
je 0x4d4a5f
push 0x800
push eax
lea eax, [ebp + 0x1048]
push eax
call fcn.004bdae0
cmp word [ebp + 0x3048], 0x2a
jne 0x4d4a7c
cmp word [ebp + 0x304a], 0
jne 0x4d4a7c
xor eax, eax
mov word [ebp + 0x3048], ax
push 6
push str.WinCon
lea edi, [esi + 0x1010]
push edi
call fcn.004a3770
push eax
call fcn.004c1bf0
test eax, eax
jne 0x4d4aab
xor ecx, ecx
mov word [ebp + 0x3048], ax
mov word [ebp + 0x1048], cx
jmp 0x4d4ab9
mov ax, word [ebp + 0x3048]
mov cx, word [ebp + 0x1048]
xor edx, edx
lea esi, [ebx + 0x1040]
mov word [esi], dx
cmp word [edi], dx
je 0x4d50ab
cmp word [ebp + 0x2048], dx
jne 0x4d4aef
test ax, ax
jne 0x4d4aef
test cx, cx
jne 0x4d4aef
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc3fa], dl
je 0x4d50ab
push edi
call fcn.00491350
test al, al
je 0x4d50ab
push 0x800
push edi
lea eax, [ebx + 0x2040]
push eax
call fcn.004bdae0
push 0x800
push esi
push str.Rar_SF
mov dword [ebx + 0x3040], edi
call fcn.004fd580
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4d5087
push 0x55ba0c
push edi
call fcn.004fdf10
mov edi, eax
test edi, edi
sete al
mov byte [ebx + 0x3044], al
test edi, edi
je 0x4d5068
push edi
push 0x400
lea eax, [ebp + 0xc48]
push 1
push eax
call fcn.0053c895
push edi
mov esi, eax
call fcn.005391cd
add esi, 0xfffffffc
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x4d4bb1
jmp 0x4d4b80
cmp byte [ebp + eax + 0xc48], 0x55
jne 0x4d4bac
cmp byte [ebp + eax + 0xc49], 0x50
jne 0x4d4bac
cmp byte [ebp + eax + 0xc4a], 0x58
jne 0x4d4bac
cmp byte [ebp + eax + 0xc4b], 0x30
je 0x4d5068
inc eax
cmp eax, esi
jl 0x4d4b80
mov esi, dword [ebp - 0x18]
mov ecx, ebx
mov edi, dword [ebp - 0x1c]
add esi, 0x1010
push edi
push esi
call fcn.004d56c0
test al, al
je 0x4d50ab
push edi
call fcn.005391cd
push 0x10000
mov dword [ebp - 0x38], 0
push 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0x10000
call fcn.0053869a
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4d4c16
mov ecx, 0x5d381c
call fcn.00487da0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], 0x10000
mov byte [ebp - 4], 1
mov ecx, ebx
push 0x10000
push edi
push esi
call fcn.004d6380
cmp word [ebp + 0x2048], 0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
jne 0x4d4c5f
cmp word [ebp + 0x3048], 0
jne 0x4d4c5f
cmp word [ebp + 0x1048], 0
je 0x4d4f27
push 0
lea esi, [ebx + 0x1040]
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4d503c
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
mov dword [ebp - 0x28], ecx
test ecx, ecx
je 0x4d4ef5
mov ax, word [ebp + 0x2048]
mov esi, dword [ebp - 0x14]
test ax, ax
je 0x4d4cdf
push esi
push 0x4d58e0
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push 0x4d58e0
push 0xe
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0x64
lea eax, [ebp + 0x2048]
mov ecx, ebx
push eax
push esi
call fcn.004d51c0
mov cl, al
mov ax, word [ebp + 0x2048]
mov byte [ebp - 0xe], cl
jmp 0x4d4ce2
mov cl, byte [ebp - 0xe]
cmp word [ebp + 0x3048], 0
jne 0x4d4cfa
cmp word [ebp + 0x1048], 0
je 0x4d4eec
test ax, ax
je 0x4d4d07
test cl, cl
je 0x4d4eec
push 0x569804
lea eax, [ebp + 0x3048]
push eax
call fcn.004a18a0
test al, al
jne 0x4d4d31
push 0x569804
lea eax, [ebp + 0x1048]
push eax
call fcn.004a18a0
test al, al
je 0x4d4d42
push esi
push 0x4d58e0
push 2
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push 0x4d58e0
push 0x56980c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
cmp word [ebp + 0x3048], 0
je 0x4d4ece
push 0x569804
lea eax, [ebp + 0x3048]
push eax
call fcn.004a18a0
test al, al
lea eax, [ebp + 0x3048]
je 0x4d4ec0
push 0x55ba0c
push eax
call fcn.004fdf10
mov esi, eax
test esi, esi
sete al
mov byte [ebx + 0x3044], al
test esi, esi
jne 0x4d4dab
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
jmp 0x4d4ece
push esi
call fcn.0053e0e4
add esp, 4
cmp eax, 0x42
jne 0x4d4df8
push esi
call fcn.0053e0e4
add esp, 4
cmp eax, 0x4d
jne 0x4d4df8
push 0
push 2
push esi
call fcn.0053ccab
push esi
push 1
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.0053c895
mov eax, dword [ebp - 0x20]
sub eax, 0xe
push eax
mov dword [ebp - 0x20], eax
call fcn.005398b8
add esp, 0x20
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4d4e0d
push esi
call fcn.005391cd
mov esi, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0xd], 0
jmp 0x4d4ece
push 0
push 0xe
push esi
call fcn.0053ccab
push esi
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x24]
call fcn.0053c895
add esp, 0x1c
cmp eax, dword [ebp - 0x20]
je 0x4d4e87
push str.BMP__PNG
push 0x686
call fcn.004b7300
push eax
lea eax, [ebp + 0xc48]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x10
push 0x66
call fcn.004b7300
push 0x10
push eax
lea eax, [ebp + 0xc48]
push eax
push dword [0x5933dc]
call fcn.004feae0
push dword [ebp - 0x24]
call fcn.0053867f
push esi
call fcn.005391cd
mov esi, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 0xd], 0
jmp 0x4d4ece
push esi
call fcn.005391cd
add esp, 4
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push 0x400
push 0x65
push 2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
push dword [ebp - 0x24]
mov esi, eax
call fcn.0053867f
add esp, 4
test esi, esi
mov esi, dword [ebp - 0x14]
setne byte [ebp - 0xd]
jmp 0x4d4ece
push 0x65
push eax
push esi
mov ecx, ebx
call fcn.004d5450
mov byte [ebp - 0xd], al
cmp word [ebp + 0x1048], 0
je 0x4d4eec
push 0x66
lea eax, [ebp + 0x1048]
mov ecx, ebx
push eax
push esi
call fcn.004d5450
or byte [ebp - 0xd], al
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
je 0x4d503c
cmp word [ebp + 0x3048], 0
mov al, byte [ebp - 0xd]
je 0x4d4f1d
test al, al
je 0x4d503c
cmp byte [ebp - 0xe], 0
jne 0x4d4f9b
test al, al
jne 0x4d4f9b
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc3fa], 0
jne 0x4d4f9e
lea esi, [ebx + 0x1040]
cmp dword [ebp - 0x1c], 0
je 0x4d4f81
push 0x10000
push edi
push esi
mov ecx, ebx
call fcn.004d6380
test eax, eax
jne 0x4d4f81
push 0x569814
push esi
call fcn.004fdf10
mov esi, eax
test esi, esi
je 0x4d4f81
push 2
push 0
push esi
call fcn.0053ccab
push esi
push dword [ebp - 0x1c]
push 1
push edi
call fcn.00539653
push esi
call fcn.005391cd
add esp, 0x20
mov byte [ebp - 4], 0
test edi, edi
je 0x4d5087
push edi
call fcn.0053867f
add esp, 4
jmp 0x4d5087
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc3fa], 0
lea esi, [ebx + 0x1040]
je 0x4d4fb5
push esi
mov ecx, ebx
call fcn.004d5770
push 0
lea eax, [ebp]
mov dword [ebp + 0x1010], 0
push eax
push esi
mov dword [ebp + 0x1014], 0
mov dword [ebp + 0x1018], 0
mov dword [ebp + 0x101c], 0
mov dword [ebp + 0x1020], 0
mov dword [ebp + 0x1024], 0
call fcn.004930c0
test al, al
je 0x4d504f
mov ecx, dword [ebp - 0x1c]
xor eax, eax
add ecx, dword [ebp + 0x1000]
adc eax, dword [ebp + 0x1004]
mov dword [ebp - 0x28], eax
jne 0x4d501f
cmp ecx, 0x200000
jbe 0x4d504f
push 0x200000
push 0x5a0
call fcn.004b7300
push eax
push 0x5b332a
call fcn.00504130
add esp, 0xc
mov byte [ebp - 4], 0
test edi, edi
je 0x4d50ab
push edi
call fcn.0053867f
add esp, 4
jmp 0x4d50ab
mov eax, dword [ebp - 0x18]
push 0x800
push esi
add eax, 0x1010
push eax
call fcn.004bdae0
jmp 0x4d4f39
push 0x5f5
call fcn.004b7300
push eax
call fcn.005037c0
add esp, 4
mov ecx, 0x5d381c
push 1
call fcn.00488460
cmp word [ebx + 0x1040], 0
lea ecx, [ebx + 0x1040]
je 0x4d50ab
mov eax, dword [ebx]
push 4
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55770c]
mov ecx, ebx
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4048]
xor ecx, ebp
call fcn.00530218
lea esp, [ebp + 0x404c]
pop ebp
ret 4