Function at 0x4d3ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404c]
mov eax, 0x404c
call fcn.0052f720
push 0xffffffffffffffff
push 0x552355
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58bb30]
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.0048ea10
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, 0x5c7968
call fcn.004da200
lea eax, [ebp + 0x2048]
push eax
call fcn.00490c30
test al, al
jne 0x4d3f87
xor eax, eax
mov word [ebp + 0x2048], ax
lea eax, [ebp + 0x3048]
push eax
call fcn.00490c30
test al, al
jne 0x4d3fa0
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 0x4d3fcb
push 0x800
push eax
lea eax, [ebp + 0x2048]
push eax
call fcn.004bd090
cmp word [esi + 0xa3fa], 0
lea eax, [esi + 0xa3fa]
je 0x4d3fed
push 0x800
push eax
lea eax, [ebp + 0x3048]
push eax
call fcn.004bd090
cmp word [esi + 0xb3fa], 0
lea eax, [esi + 0xb3fa]
je 0x4d400f
push 0x800
push eax
lea eax, [ebp + 0x1048]
push eax
call fcn.004bd090
cmp word [ebp + 0x3048], 0x2a
jne 0x4d402c
cmp word [ebp + 0x304a], 0
jne 0x4d402c
xor eax, eax
mov word [ebp + 0x3048], ax
push 6
push str.WinCon
lea edi, [esi + 0x1010]
push edi
call fcn.004a2d90
push eax
call fcn.004c11b0
test eax, eax
jne 0x4d405b
xor ecx, ecx
mov word [ebp + 0x3048], ax
mov word [ebp + 0x1048], cx
jmp 0x4d4069
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 0x4d465b
cmp word [ebp + 0x2048], dx
jne 0x4d409f
test ax, ax
jne 0x4d409f
test cx, cx
jne 0x4d409f
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc3fa], dl
je 0x4d465b
push edi
call fcn.00490c30
test al, al
je 0x4d465b
push 0x800
push edi
lea eax, [ebx + 0x2040]
push eax
call fcn.004bd090
push 0x800
push esi
push str.Rar_SF
mov dword [ebx + 0x3040], edi
call fcn.004fc9a0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4d4637
push 0x55a9fc
push edi
call fcn.004fd330
mov edi, eax
test edi, edi
sete al
mov byte [ebx + 0x3044], al
test edi, edi
je 0x4d4618
push edi
push 0x400
lea eax, [ebp + 0xc48]
push 1
push eax
call fcn.0053bd85
push edi
mov esi, eax
call fcn.005386bd
add esi, 0xfffffffc
add esp, 0x14
xor eax, eax
test esi, esi
jle 0x4d4161
jmp 0x4d4130
cmp byte [ebp + eax + 0xc48], 0x55
jne 0x4d415c
cmp byte [ebp + eax + 0xc49], 0x50
jne 0x4d415c
cmp byte [ebp + eax + 0xc4a], 0x58
jne 0x4d415c
cmp byte [ebp + eax + 0xc4b], 0x30
je 0x4d4618
inc eax
cmp eax, esi
jl 0x4d4130
mov esi, dword [ebp - 0x18]
mov ecx, ebx
mov edi, dword [ebp - 0x1c]
add esi, 0x1010
push edi
push esi
call fcn.004d4c70
test al, al
je 0x4d465b
push edi
call fcn.005386bd
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.00537b8a
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4d41c6
mov ecx, 0x5d281c
call fcn.004875a0
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.004d5930
cmp word [ebp + 0x2048], 0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
jne 0x4d420f
cmp word [ebp + 0x3048], 0
jne 0x4d420f
cmp word [ebp + 0x1048], 0
je 0x4d44d7
push 0
lea esi, [ebx + 0x1040]
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4d45ec
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 0x4d44a5
mov ax, word [ebp + 0x2048]
mov esi, dword [ebp - 0x14]
test ax, ax
je 0x4d428f
push esi
push 0x4d4e90
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push 0x4d4e90
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.004d4770
mov cl, al
mov ax, word [ebp + 0x2048]
mov byte [ebp - 0xe], cl
jmp 0x4d4292
mov cl, byte [ebp - 0xe]
cmp word [ebp + 0x3048], 0
jne 0x4d42aa
cmp word [ebp + 0x1048], 0
je 0x4d449c
test ax, ax
je 0x4d42b7
test cl, cl
je 0x4d449c
push 0x568604
lea eax, [ebp + 0x3048]
push eax
call fcn.004a0ef0
test al, al
jne 0x4d42e1
push 0x568604
lea eax, [ebp + 0x1048]
push eax
call fcn.004a0ef0
test al, al
je 0x4d42f2
push esi
push 0x4d4e90
push 2
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push esi
push 0x4d4e90
push 0x56860c
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
cmp word [ebp + 0x3048], 0
je 0x4d447e
push 0x568604
lea eax, [ebp + 0x3048]
push eax
call fcn.004a0ef0
test al, al
lea eax, [ebp + 0x3048]
je 0x4d4470
push 0x55a9fc
push eax
call fcn.004fd330
mov esi, eax
test esi, esi
sete al
mov byte [ebx + 0x3044], al
test esi, esi
jne 0x4d435b
mov esi, dword [ebp - 0x14]
mov byte [ebp - 0xd], 0
jmp 0x4d447e
push esi
call fcn.0053d5d4
add esp, 4
cmp eax, 0x42
jne 0x4d43a8
push esi
call fcn.0053d5d4
add esp, 4
cmp eax, 0x4d
jne 0x4d43a8
push 0
push 2
push esi
call fcn.0053c19b
push esi
push 1
lea eax, [ebp - 0x20]
push 4
push eax
call fcn.0053bd85
mov eax, dword [ebp - 0x20]
sub eax, 0xe
push eax
mov dword [ebp - 0x20], eax
call fcn.00538da8
add esp, 0x20
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4d43bd
push esi
call fcn.005386bd
mov esi, dword [ebp - 0x14]
add esp, 4
mov byte [ebp - 0xd], 0
jmp 0x4d447e
push 0
push 0xe
push esi
call fcn.0053c19b
push esi
push dword [ebp - 0x20]
push 1
push dword [ebp - 0x24]
call fcn.0053bd85
add esp, 0x1c
cmp eax, dword [ebp - 0x20]
je 0x4d4437
push str.BMP__PNG
push 0x686
call fcn.004b68d0
push eax
lea eax, [ebp + 0xc48]
push 0x200
push eax
call fcn.00404ce0
add esp, 0x10
push 0x66
call fcn.004b68d0
push 0x10
push eax
lea eax, [ebp + 0xc48]
push eax
push dword [0x5923dc]
call fcn.004fdf00
push dword [ebp - 0x24]
call fcn.00537b6f
push esi
call fcn.005386bd
mov esi, dword [ebp - 0x14]
add esp, 8
mov byte [ebp - 0xd], 0
jmp 0x4d447e
push esi
call fcn.005386bd
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.00537b6f
add esp, 4
test esi, esi
mov esi, dword [ebp - 0x14]
setne byte [ebp - 0xd]
jmp 0x4d447e
push 0x65
push eax
push esi
mov ecx, ebx
call fcn.004d4a00
mov byte [ebp - 0xd], al
cmp word [ebp + 0x1048], 0
je 0x4d449c
push 0x66
lea eax, [ebp + 0x1048]
mov ecx, ebx
push eax
push esi
call fcn.004d4a00
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 0x4d45ec
cmp word [ebp + 0x3048], 0
mov al, byte [ebp - 0xd]
je 0x4d44cd
test al, al
je 0x4d45ec
cmp byte [ebp - 0xe], 0
jne 0x4d454b
test al, al
jne 0x4d454b
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc3fa], 0
jne 0x4d454e
lea esi, [ebx + 0x1040]
cmp dword [ebp - 0x1c], 0
je 0x4d4531
push 0x10000
push edi
push esi
mov ecx, ebx
call fcn.004d5930
test eax, eax
jne 0x4d4531
push 0x568614
push esi
call fcn.004fd330
mov esi, eax
test esi, esi
je 0x4d4531
push 2
push 0
push esi
call fcn.0053c19b
push esi
push dword [ebp - 0x1c]
push 1
push edi
call fcn.00538b43
push esi
call fcn.005386bd
add esp, 0x20
mov byte [ebp - 4], 0
test edi, edi
je 0x4d4637
push edi
call fcn.00537b6f
add esp, 4
jmp 0x4d4637
mov eax, dword [ebp - 0x18]
cmp byte [eax + 0xc3fa], 0
lea esi, [ebx + 0x1040]
je 0x4d4565
push esi
mov ecx, ebx
call fcn.004d4d20
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.00492720
test al, al
je 0x4d45ff
mov ecx, dword [ebp - 0x1c]
xor eax, eax
add ecx, dword [ebp + 0x1000]
adc eax, dword [ebp + 0x1004]
mov dword [ebp - 0x28], eax
jne 0x4d45cf
cmp ecx, 0x200000
jbe 0x4d45ff
push 0x200000
push 0x5a0
call fcn.004b68d0
push eax
push 0x5b232a
call fcn.00503540
add esp, 0xc
mov byte [ebp - 4], 0
test edi, edi
je 0x4d465b
push edi
call fcn.00537b6f
add esp, 4
jmp 0x4d465b
mov eax, dword [ebp - 0x18]
push 0x800
push esi
add eax, 0x1010
push eax
call fcn.004bd090
jmp 0x4d44e9
push 0x5f5
call fcn.004b68d0
push eax
call fcn.00502bd0
add esp, 4
mov ecx, 0x5d281c
push 1
call fcn.00487c60
cmp word [ebx + 0x1040], 0
lea ecx, [ebx + 0x1040]
je 0x4d465b
mov eax, dword [ebx]
push 4
push ecx
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55670c]
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.0052f708
lea esp, [ebp + 0x404c]
pop ebp
ret 4