Function at 0x4beb50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6613
mov eax, dword fs:[0]
push eax
mov eax, 0x3ac0
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x3ac0], ebx
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
add esp, 0x18
lea ecx, [ebp - 0x3ac8]
call fcn.00443080
lea ecx, [ebp - 0x3ac4]
mov dword [ebp - 4], 0
call fcn.00475e00
mov byte [ebp - 4], 1
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x1c0]
test eax, eax
jne 0x4bebfe
push eax
push eax
push 0xf0
push dword [ebx + 0x4e8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x4bf70e
mov ecx, dword [0x6184f0]
push 0
mov ecx, dword [ecx + 4]
call fcn.004ff5e0
mov ecx, dword [0x6184f0]
push 0x5cfd00
push str.DEFAULTINDEX
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
mov eax, dword [0x6184f8]
or ebx, 0xffffffff
mov edi, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x4beee9
nop word [eax + eax]
push 0x2a7c
lea eax, [ebp - 0x3aac]
push edi
push eax
call fcn.00571100
add esp, 0xc
cmp dword [ebp - 0x1e3c], 0
je 0x4beed5
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
lea ecx, [ebp - 0x2e7c]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bec94
sub ecx, edx
lea eax, [ebp - 0x328c]
sar ecx, 1
je 0x4becb1
lea eax, [ebp - 0x2e7c]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ab0], eax
lea eax, [ebp - 0x3ab0]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x3ac4]
call fcn.004762c0
mov esi, dword [ebp - 0x3ab0]
cmp dword [esi - 0xc], 0
jle 0x4bed0f
push esi
jmp 0x4bed16
lea eax, [ebp - 0x369c]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x3ac8]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00445200
mov ecx, dword [0x6184f0]
mov eax, dword [ecx + 8]
cmp dword [eax + 0x7f8], 2
jne 0x4bee22
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ab4], eax
push 0x13f6
lea ecx, [ebp - 0x3ab4]
mov byte [ebp - 4], 3
call fcn.00403020
mov esi, dword [ebp - 0x3ab4]
lea eax, [ebp - 0x1a28]
push 0
push 0
push esi
push 0
push 0
mov ecx, dword [0x6184f0]
push 0
push 0
push 0
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x369c]
push eax
push 0
call fcn.004fdf90
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bede9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3ab0]
mov ebx, dword [0x6184f0]
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 8]
test eax, eax
js 0x4beeb7
cmp dword [ebx + 0x14], 0
jne 0x4bee5d
imul ecx, eax, 0x413c
mov eax, dword [ebx + 4]
mov dword [ecx + eax + 0x100018], 1
jmp 0x4beeb7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x1a28]
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x369c]
push eax
push 0
call fcn.004fdf90
jmp 0x4bedef
push 0x800
lea eax, [ebp - 0x1030]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x1030]
push eax
mov eax, dword [0x6184f0]
push str.UPDATEPROCFLAG
mov ecx, dword [eax + 0x1c]
call fcn.004f65f0
push 0x5ca984
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4beeb7
imul ecx, dword [ebx + 8], 0x413c
mov eax, dword [ebx + 4]
mov dword [ecx + eax + 0x5c7268], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4beed5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x6184f8]
add edi, 0x2a7c
cmp edi, dword [eax + 8]
jne 0x4bec40
mov eax, dword [0x6184f8]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x3ab4], esi
cmp esi, dword [eax + 0x14]
je 0x4bf2b1
push 0x2a7c
lea eax, [ebp - 0x3aac]
push esi
push eax
call fcn.00571100
add esp, 0xc
cmp dword [ebp - 0x1e3c], 0
je 0x4bf297
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
lea ecx, [ebp - 0x2e7c]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bef54
sub ecx, edx
lea eax, [ebp - 0x328c]
sar ecx, 1
je 0x4bef71
lea eax, [ebp - 0x2e7c]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ab0], eax
lea eax, [ebp - 0x3ab0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x3ac4]
call fcn.004762c0
mov edi, dword [ebp - 0x3ab0]
cmp dword [edi - 0xc], 0
jle 0x4befcf
push edi
jmp 0x4befd6
lea eax, [ebp - 0x369c]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x3ac8]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00445200
mov ecx, dword [0x6184f0]
mov eax, dword [ecx + 8]
cmp dword [eax + 0x7f8], 2
jne 0x4bf1e4
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3acc], esi
push 0x13f6
mov byte [ebp - 4], 5
call fcn.00551063
mov ebx, eax
mov dword [ebp - 0x3abc], ebx
test ebx, ebx
je 0x4bf151
push 6
push 0x140
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x3ab8], eax
test eax, eax
je 0x4bf151
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4bf151
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4bf151
push dword [ebp - 0x3ab8]
push dword [ebp - 0x3abc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 6
lea edx, [eax + ebx]
nop dword [eax + eax]
cmp ebx, edx
jae 0x4bf151
movzx eax, word [ebx]
lea ebx, [ebx + eax*2]
add ebx, 2
sub ecx, 1
jne 0x4bf0b0
cmp ebx, edx
jae 0x4bf151
movzx eax, word [ebx]
test ax, ax
je 0x4bf151
movzx edi, word [ebx]
mov edx, eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
mov dword [ebp - 0x3abc], edi
mov edi, dword [ebp - 0x3ab0]
mov dword [ebp - 0x3ab8], edx
jge 0x4bf11b
push edx
lea ecx, [ebp - 0x3acc]
call fcn.00403b50
movzx eax, word [ebx]
mov esi, dword [ebp - 0x3acc]
mov edx, dword [ebp - 0x3ab8]
jmp 0x4bf121
mov eax, dword [ebp - 0x3abc]
movzx ecx, ax
lea eax, [ebx + 2]
push ecx
push eax
push edx
push esi
call fcn.0057455e
push eax
call fcn.004012e0
mov eax, dword [ebp - 0x3ab8]
add esp, 0x14
cmp eax, dword [esi - 8]
jg 0x4bf758
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0
push 0
push esi
push 0
push 0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1a28]
push 0
push 0
push 0
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x369c]
push eax
push 0
call fcn.004fdf90
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf1ab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3ab4]
mov ebx, dword [0x6184f0]
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 8]
test eax, eax
js 0x4bf279
cmp dword [ebx + 0x14], 0
jne 0x4bf21f
imul ecx, eax, 0x413c
mov eax, dword [ebx + 4]
mov dword [ecx + eax + 0x100018], 1
jmp 0x4bf279
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x1a28]
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x369c]
push eax
push 0
call fcn.004fdf90
jmp 0x4bf1b1
push 0x800
lea eax, [ebp - 0x1030]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x1030]
push eax
mov eax, dword [0x6184f0]
push str.UPDATEPROCFLAG
mov ecx, dword [eax + 0x1c]
call fcn.004f65f0
push 0x5ca984
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4bf279
imul ecx, dword [ebx + 8], 0x413c
mov eax, dword [ebx + 4]
mov dword [ecx + eax + 0x5c7268], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf297
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x6184f8]
add esi, 0x2a7c
mov dword [ebp - 0x3ab4], esi
cmp esi, dword [eax + 0x14]
jne 0x4bef00
mov eax, dword [ebp - 0x3ac0]
mov edi, dword [eax + 0x71c]
cmp edi, dword [eax + 0x720]
je 0x4bf67f
nop dword [eax]
push 0x2a7c
lea eax, [ebp - 0x3aac]
push edi
push eax
call fcn.00571100
add esp, 0xc
cmp dword [ebp - 0x1e3c], 0
je 0x4bf667
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00571c00
push 0x410
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00571c00
lea ecx, [ebp - 0x2e7c]
add esp, 0x18
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf324
sub ecx, edx
lea eax, [ebp - 0x328c]
sar ecx, 1
je 0x4bf341
lea eax, [ebp - 0x2e7c]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ab0], eax
lea eax, [ebp - 0x3ab0]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x3ac4]
call fcn.004762c0
mov esi, dword [ebp - 0x3ab0]
cmp dword [esi - 0xc], 0
jle 0x4bf39f
push esi
jmp 0x4bf3a6
lea eax, [ebp - 0x369c]
push eax
lea eax, [ebp - 0x420]
push 0x208
push eax
call fcn.005746e6
add esp, 0xc
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x3ac8]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00445200
mov ecx, dword [0x6184f0]
mov eax, dword [ecx + 8]
cmp dword [eax + 0x7f8], 2
jne 0x4bf5b4
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x3ab8], esi
push 0x13f6
mov byte [ebp - 4], 7
call fcn.00551063
mov ebx, eax
mov dword [ebp - 0x3acc], ebx
test ebx, ebx
je 0x4bf521
push 6
push 0x140
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x3abc], eax
test eax, eax
je 0x4bf521
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4bf521
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4bf521
push dword [ebp - 0x3abc]
push dword [ebp - 0x3acc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, 6
lea edx, [eax + ebx]
nop dword [eax + eax]
cmp ebx, edx
jae 0x4bf521
movzx eax, word [ebx]
lea ebx, [ebx + eax*2]
add ebx, 2
sub ecx, 1
jne 0x4bf480
cmp ebx, edx
jae 0x4bf521
movzx eax, word [ebx]
test ax, ax
je 0x4bf521
mov edx, eax
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
mov dword [ebp - 0x3ab4], edx
movzx edx, word [ebx]
mov dword [ebp - 0x3abc], edx
mov edx, dword [ebp - 0x3ab4]
jge 0x4bf4eb
push edx
lea ecx, [ebp - 0x3ab8]
call fcn.00403b50
movzx eax, word [ebx]
mov esi, dword [ebp - 0x3ab8]
mov edx, dword [ebp - 0x3ab4]
jmp 0x4bf4f1
mov eax, dword [ebp - 0x3abc]
movzx ecx, ax
lea eax, [ebx + 2]
push ecx
push eax
push edx
push esi
call fcn.0057455e
push eax
call fcn.004012e0
mov eax, dword [ebp - 0x3ab4]
add esp, 0x14
cmp eax, dword [esi - 8]
jg 0x4bf758
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0
push 0
push esi
push 0
push 0
mov ecx, dword [0x6184f0]
lea eax, [ebp - 0x1a28]
push 0
push 0
push 0
mov ecx, dword [ecx + 4]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x369c]
push eax
push 0
call fcn.004fdf90
mov byte [ebp - 4], 6
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf57b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x3ab0]
mov ebx, dword [0x6184f0]
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 8]
test eax, eax
js 0x4bf649
cmp dword [ebx + 0x14], 0
jne 0x4bf5ef
imul ecx, eax, 0x413c
mov eax, dword [ebx + 4]
mov dword [ecx + eax + 0x100018], 1
jmp 0x4bf649
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0x1a28]
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x369c]
push eax
push 0
call fcn.004fdf90
jmp 0x4bf581
push 0x800
lea eax, [ebp - 0x1030]
push 0
push eax
call fcn.00571c00
add esp, 0xc
lea eax, [ebp - 0x1030]
push eax
mov eax, dword [0x6184f0]
push str.UPDATEPROCFLAG
mov ecx, dword [eax + 0x1c]
call fcn.004f65f0
push 0x5ca984
lea eax, [ebp - 0x1030]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4bf649
imul ecx, dword [ebx + 8], 0x413c
mov eax, dword [ebx + 4]
mov dword [ecx + eax + 0x5c7268], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4bf667
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x3ac0]
add edi, 0x2a7c
cmp edi, dword [eax + 0x720]
jne 0x4bf2d0
mov ecx, dword [0x6184f0]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax]
test esi, esi
jle 0x4bf6fc
call fcn.00550b4e
mov ecx, eax
test ecx, ecx
je 0x4bf762
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3ac0], eax
push esi
lea eax, [ebp - 0x3ac0]
mov byte [ebp - 4], 8
push 0x5c6b38
push eax
call fcn.00408a60
mov ecx, dword [0x6184f0]
add esp, 0xc
mov esi, dword [ebp - 0x3ac0]
mov ecx, dword [ecx + 0x1c]
push esi
push str.InstallPrinterCount
call fcn.004f6860
mov byte [ebp - 4], 1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4bf70e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bf70e
mov ecx, dword [ecx + 0x1c]
push 0x5c797c
push str.InstallPrinterCount
call fcn.004f6860
mov ecx, dword [0x6184f0]
push 0x5c797c
push str.PortSelectCount
mov ecx, dword [ecx + 0x1c]
call fcn.004f6860
lea ecx, [ebp - 0x3ac4]
call fcn.00475ed0
lea ecx, [ebp - 0x3ac8]
call fcn.00443150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004013a0
push 0x80004005
call fcn.004013a0
int3