Function at 0x4e52d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 5
push eax
push 0
mov dword [ebp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4e52ff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4e5316
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4e532d
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004fcaea
mov ecx, esi
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x14], eax
rep movsb byte es:[edi], byte [esi]
cmp word [eax], 0xffff
jne 0x4e5375
push eax
call fcn.004fcb13
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ecx, ebx
lea eax, [ebp + 0xc]
add ebx, 0x12
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov cx, word [ecx + 0x10]
mov word [eax + 0x10], cx
mov ax, word [ebx]
cmp ax, 0xffff
jne 0x4e53bc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, 2
xor edx, edx
mov dx, word [ebx]
add ebx, 2
mov dword [ebp + 0x20], edx
xor edi, edi
jmp 0x4e53e7
xor edi, edi
cmp ax, di
je 0x4e53de
push ebx
call fcn.004e5290
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
mov dword [ebp + 0x24], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
jmp 0x4e53e7
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebx, 2
mov ax, word [ebx]
cmp ax, 0xffff
jne 0x4e5418
add ebx, 2
xor eax, eax
mov ax, word [ebx]
mov dword [ebp + 0x28], eax
add ebx, 2
cmp word [ebx], di
je 0x4e5432
push ebx
call fcn.004e5290
add esp, 4
mov dword [ebp + 0x30], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
jmp 0x4e5435
cmp ax, di
je 0x4e53fb
push ebx
call fcn.004e5290
add esp, 4
mov dword [ebp + 0x2c], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
jmp 0x4e53fe
add ebx, 2
test byte [ebp + 0xc], 0x40
je 0x4e5458
mov cx, word [ebx]
add ebx, 2
push ebx
mov word [ebp + 0x34], cx
call fcn.004e5290
add esp, 4
mov dword [ebp + 0x38], eax
push eax
call esi
lea ebx, [ebx + eax*2 + 2]
xor esi, esi
mov si, word [ebp + 0x14]
lea edx, [esi + esi*2]
shl edx, 3
sub edx, esi
shl edx, 2
push edx
call fcn.004fcaea
add esp, 4
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4e54e6
lea ecx, [esi - 1]
cmp ecx, edi
jl 0x4e54e8
inc ecx
lea esi, [eax + 0x14]
mov dword [esp + 0x1c], ecx
jmp 0x4e548d
xor edi, edi
lea ecx, [esi - 0x14]
xor eax, eax
lea edx, [esi + 0x14]
mov dword [ecx], eax
push edx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov word [ecx + 0x10], ax
mov word [esi - 2], di
mov dword [esi], edi
mov word [esi + 4], di
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov ecx, 7
xor eax, eax
lea edi, [esi + 0x2c]
add esi, 0x5c
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x1c], eax
jne 0x4e548b
mov eax, dword [esp + 0x10]
xor edi, edi
jmp 0x4e54e8
xor eax, eax
xor esi, esi
cmp word [ebp + 0x14], di
mov dword [ebp + 0x3c], eax
mov dword [esp + 0x10], esi
jbe 0x4e563c
mov dword [esp + 0x1c], edi
mov edx, dword [ebp + 0x3c]
add ebx, 3
and ebx, 0xfffffffc
mov eax, edi
mov ecx, ebx
add eax, edx
add ebx, 0x13
mov edx, dword [ecx]
and ebx, 0xfffffffe
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov cx, word [ecx + 0x10]
mov word [eax + 0x10], cx
cmp word [ebx], 0xffff
jne 0x4e554d
mov edx, dword [ebp + 0x3c]
mov ax, word [ebx + 2]
add ebx, 2
mov word [edi + edx + 0x12], ax
add ebx, 2
jmp 0x4e556f
push ebx
call fcn.004e5290
mov ecx, dword [ebp + 0x3c]
add esp, 4
mov dword [edi + ecx + 0x14], eax
mov edx, dword [ebp + 0x3c]
mov eax, dword [edi + edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax*2 + 2]
inc ebx
and ebx, 0xfffffffe
cmp word [ebx], 0xffff
jne 0x4e558e
mov ecx, dword [ebp + 0x3c]
mov dx, word [ebx + 2]
add ebx, 2
mov word [edi + ecx + 0x18], dx
add ebx, 2
jmp 0x4e55b0
push ebx
call fcn.004e5290
mov ecx, dword [ebp + 0x3c]
add esp, 4
mov dword [edi + ecx + 0x1c], eax
mov edx, dword [ebp + 0x3c]
mov eax, dword [edi + edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax*2 + 2]
mov ax, word [ebx]
test ax, ax
je 0x4e5616
mov ecx, dword [ebp + 0x3c]
and eax, 0xffff
mov dword [edi + ecx + 0x20], eax
mov edx, dword [ebp + 0x3c]
mov eax, dword [edi + edx + 0x20]
sub eax, 2
push eax
call fcn.004fcaea
mov ecx, dword [ebp + 0x3c]
add ebx, 2
mov esi, ebx
add esp, 4
mov dword [edi + ecx + 0x24], eax
mov edx, dword [ebp + 0x3c]
add edi, edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x20]
mov edi, dword [edi + 0x24]
sub ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x3c]
mov esi, dword [esp + 0x10]
mov edi, edx
mov eax, dword [edx + ecx + 0x20]
lea ebx, [ebx + eax - 2]
jmp 0x4e5619
add ebx, 2
mov ecx, dword [ebp + 0x3c]
xor edx, edx
mov dword [edi + ecx + 0x38], esi
mov dx, word [ebp + 0x14]
inc esi
add edi, 0x5c
cmp esi, edx
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edi
jl 0x4e54ff
xor edi, edi
mov esi, dword [esp + 0x14]
mov ecx, ebp
push esi
and dword [esi], 0xefffffff
call fcn.004e5780
test eax, eax
push esi
jne 0x4e5667
call fcn.004fcb13
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
call fcn.004fcb13
xor esi, esi
add esp, 4
mov si, word [ebp + 0x14]
xor ecx, ecx
cmp esi, edi
jle 0x4e56e0
mov edi, dword [ebp + 0x3c]
mov edx, edi
mov ax, word [edx + 0x12]
cmp ax, 0x80
je 0x4e56a2
cmp ax, 0x81
je 0x4e569c
cmp ax, 0x83
je 0x4e569c
cmp ax, 0x85
jne 0x4e56ab
cmp ax, 0x80
jne 0x4e56c2
mov eax, dword [edx]
and eax, 0xf
cmp al, 7
jne 0x4e56c2
inc ecx
add edx, 0x5c
cmp ecx, esi
jl 0x4e5680
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4
lea eax, [ecx + ecx*2]
shl eax, 3
sub eax, ecx
shl eax, 2
mov edx, dword [edi + eax + 0x3c]
or edx, 4
mov dword [edi + eax + 0x3c], edx
mov ecx, dword [ebp + 0x3c]
add eax, ecx
mov dword [ebp + 0x68], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 4