Function at 0x4e1400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.WSPStartup
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e1635
push 0x400
lea eax, [ebp - 0x448]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4e147f
cmp eax, 0x400
jae 0x4e147f
lea eax, [ebp - 0x448]
push 0x5c
push eax
call fcn.00554260
add esp, 8
test eax, eax
je 0x4e1486
lea edx, [eax + 1]
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e1460
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
lea eax, [ebp - 0x448]
push eax
call fcn.00553b80
add esp, 0xc
jmp 0x4e1486
mov byte [ebp - 0x448], 0
mov esi, 0x70a424
jmp 0x4e1490
lea eax, [ebp - 0x448]
push eax
push dword [esi - 0x10]
call fcn.0056ebf6
add esp, 8
test eax, eax
jne 0x4e15a9
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [esi - 0xc]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x4e15a9
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4e15a9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4e15a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e15a9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4e15a9
push ebx
call fcn.005519f1
push ebx
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], eax
push ebx
call fcn.00553b80
add esp, 0x10
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x6ed8f4
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4e15a0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 8]
mov edx, ecx
mov eax, dword [eax + 0xc]
shr edx, 0x10
mov dword [ebp - 8], edx
mov edx, eax
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
shr edx, 0x10
movzx ecx, cx
cmp eax, dword [ebp - 0xc]
jb 0x4e163e
jne 0x4e15a0
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jb 0x4e163e
jne 0x4e15a0
cmp edx, dword [ebp - 0x10]
jb 0x4e163e
cmp ecx, eax
jne 0x4e15a0
cmp edx, dword [ebp - 0x10]
jne 0x4e15a0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x2c]
jbe 0x4e163e
push ebx
call fcn.005519fa
add esp, 4
add esi, 0x18
lea eax, [esi - 0x14]
cmp eax, str.Lavasoft_Web_Companion
jne 0x4e1490
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
test eax, eax
je 0x4e1635
cmp dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x1c]
jbe 0x4e1635
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x4e15f0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x48]
push 0x1c
push eax
push esi
call ebx
mov edi, dword [ebp - 0x3c]
add edi, dword [ebp - 0x48]
push esi
call fcn.004e1650
add esp, 4
test al, al
jne 0x4e1647
cmp edi, esi
lea eax, [esi + 1]
cmova eax, edi
mov esi, eax
sub eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jb 0x4e15f0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.005519fa
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret