Function at 0x4d3e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5b6e78
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62ece4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xe
push esi
push ebx
call ebp
test eax, eax
je 0x4d3f3c
cmp dword [esp + 0x48], 0
je 0x4d3f3c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d405c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4d405c
movzx edi, word [eax + 4]
sub edi, 1
js 0x4d405c
lea ecx, [edi*8]
sub ecx, edi
lea esi, [eax + ecx*2 + 7]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
movzx edx, byte [esi - 1]
cmp edx, ecx
jne 0x4d3f23
movzx edx, byte [esi]
cmp edx, eax
jne 0x4d3f23
push 0
push eax
movzx eax, word [esi + 0xb]
push ecx
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.004d3e60
test eax, eax
jne 0x4d3f32
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
dec edi
sub esi, 0xe
test edi, edi
jge 0x4d3ef5
xor eax, eax
jmp 0x4d408f
mov eax, 1
jmp 0x4d408f
push 3
push esi
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x4d405c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d405c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4d405c
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp word [ebp + 0xe], 0x20
jne 0x4d4060
lea ecx, [esp + 0x18]
call fcn.00485c33
push 0
mov dword [esp + 0x34], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x1c]
call fcn.0048613d
push 0x34
call fcn.0049bcaa
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d404b
mov ecx, 0xa
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
cdq
sub eax, edx
sar eax, 1
imul ecx, eax
push 0
push 0
lea edx, [esp + 0x44]
push edx
add ecx, ecx
add ecx, ecx
push 0
mov dword [ebx + 8], eax
mov dword [ebx + 0x14], ecx
mov eax, dword [esp + 0x2c]
push ebx
push eax
mov dword [esp + 0x54], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4d4042
test esi, esi
je 0x4d4042
mov ecx, dword [ebx + 0x14]
push ecx
add ebp, 0x28
push ebp
push eax
call fcn.004c2690
mov ecx, dword [esp + 0x20]
add esp, 0xc
push esi
call fcn.004d3e10
push ebx
call fcn.0049bb08
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004861bc
mov edi, dword [esp + 0x14]
jmp 0x4d4083
push ebx
call fcn.0049bb08
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.004861bc
xor eax, eax
jmp 0x4d408f
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push 0
push edx
push ecx
push 0x30000
push 1
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
push eax
mov ecx, edi
call fcn.004d3dd0
mov ecx, edi
call fcn.004d1f30
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x14