Function at 0x4fc5d0
Capabilities:
Extract resource via kernel32 functions
Get graphical window text
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov ebx, dword [ebp + 8]
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0x50d280
lea eax, [esi + 0x90]
mov ecx, dword fs:[0]
test ebx, ebx
mov dword [esi + 0x90], ecx
mov dword fs:[0], eax
je 0x4fcb86
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx]
je 0x4fcb86
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x417
push ebx
call edi
mov dword [esi + 4], eax
push 0x416
push ebx
call edi
mov edi, eax
test eax, eax
je 0x4fc65b
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x4fc8ec
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
cmp ecx, 0x18
jne 0x4fc8f4
cmp dword [eax + 0x14], 8
jb 0x4fc68a
mov eax, dword [eax]
test eax, eax
je 0x4fc696
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [0x6d1ebc]
test edi, edi
je 0x4fc7af
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x20]
mov dword [esi + 0x98], 0
mov dword [esi + 8], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [ebp + 0x10]
mov dword [esi + 0x98], 0xffffffff
add eax, 0x79
push 0x6768b8
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [esi + 4]
test eax, eax
je 0x4fc7af
mov edi, dword [0x6d1ebc]
mov dword [esi + 8], eax
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x20]
mov dword [esi + 0x98], 1
mov dword [esi + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x98], 0xffffffff
push dword [esi + 8]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [esi + 4]
test eax, eax
je 0x4fc7af
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4fc7af
mov edi, dword [0x6d1ebc]
mov dword [esi + 0xc], eax
lea ebx, [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x20]
mov dword [esi + 0x98], 2
mov dword [esi + 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x98], 0xffffffff
push dword [esi + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 0
push 0x30000
push 1
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, dword [esi + 4]
test eax, eax
je 0x4fc7af
push eax
push 1
push 0xf7
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push 0
push 0x31
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x4fc8e4
test eax, eax
je 0x4fc8e4
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 8], eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x4fc8cf
mov ebx, eax
cmp eax, 0x3ffffffd
ja 0x4fc8cf
lea eax, [ebx + ebx + 2]
push eax
call fcn.005d0250
add esp, 4
test eax, eax
je 0x4fc8cf
lea ecx, [ebx + 1]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
push ecx
push eax
push dword [esi + 4]
mov dword [esi + 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0xc]
test eax, eax
je 0x4fc8c6
lea eax, [esi + 0x10]
push eax
push ebx
push ecx
push edi
mov ebx, ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, ebx
test eax, eax
je 0x4fc8c6
xorps xmm0, xmm0
lea eax, [esi + 0x40]
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
movaps xmmword [esi + 0x60], xmm0
movaps xmmword [esi + 0x50], xmm0
movaps xmmword [esi + 0x40], xmm0
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4fc88e
mov eax, dword [esi + 0x54]
lea eax, [eax + eax*2]
add eax, eax
add dword [esi + 0x10], eax
xorps xmm0, xmm0
lea eax, [esi + 0x20]
movaps xmmword [esi + 0x20], xmm0
push eax
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4fc8c3
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
push 0x206
push eax
push dword [esi + 0x10]
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esi + 0xc]
push ecx
call fcn.005d31b1
add esp, 4
push dword [esi + 8]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
mov ebx, dword [esi + 4]
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 5
push ebx
jmp 0x4fcb80
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
test edi, edi
je 0x4fcb86
sar ecx, 3
imul eax, ecx, 0xaaaaaaab
cmp eax, 2
jb 0x4fcb86
push 0
push 0
push 0x14b
mov dword [esi + 4], edi
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
cmp ebx, dword [eax + 4]
je 0x4fc964
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x4fc958
push eax
push 0
push 0x143
push dword [esi + 4]
call edi
mov eax, dword [ebp + 0xc]
add ebx, 0x18
cmp ebx, dword [eax + 4]
je 0x4fc964
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4fc940
mov eax, dword [ebx]
jmp 0x4fc940
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14e
mov edi, dword [esi + 4]
push edi
call ebx
push 0
push 0x15e
push 0x160
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0
push 0
push 0x31
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
mov dword [esi + 0x18], ebx
je 0x4fcb7d
test eax, eax
je 0x4fcb7d
push eax
push dword [esi + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x3c], eax
push 0
push 0
push 0x146
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [esi + 0xc], eax
jle 0x4fcb31
xor ebx, ebx
mov dword [esi + 0x1c], 0
jmp 0x4fc9fd
mov edi, dword [esi + 4]
inc ebx
cmp dword [esi + 0xc], ebx
je 0x4fcb38
push 0
push ebx
push 0x149
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4fc9f0
mov edi, eax
cmp eax, 0x3ffffffd
ja 0x4fc9f0
lea eax, [edi + edi + 2]
mov dword [esi + 8], eax
push eax
call fcn.005d0250
add esp, 4
test eax, eax
je 0x4fc9f0
push dword [esi + 8]
push 0
push eax
mov dword [esi + 8], eax
call fcn.0061e8c0
add esp, 0xc
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
push dword [esi + 8]
push ebx
push 0x148
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4fcac3
mov ecx, dword [esi + 8]
lea eax, [esi + 0x10]
mov word [ecx + edi*2], 0
push eax
push edi
push ecx
mov edi, dword [esi + 0x18]
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4fcac3
xorps xmm0, xmm0
lea eax, [esi + 0x40]
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x78], 0
movaps xmmword [esi + 0x60], xmm0
movaps xmmword [esi + 0x50], xmm0
movaps xmmword [esi + 0x40], xmm0
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edi, dword [esi + 4]
test eax, eax
je 0x4fcac8
mov ecx, dword [esi + 0x54]
add ecx, ecx
add ecx, dword [esi + 0x10]
mov dword [esi + 0x10], ecx
jmp 0x4fcacb
mov edi, dword [esi + 4]
jmp 0x4fcb20
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x1c]
cmp ecx, edx
cmovge edx, ecx
test ebx, ebx
mov dword [esi + 0x1c], edx
jne 0x4fcb20
test eax, eax
xorps xmm0, xmm0
movaps xmmword [esi + 0x20], xmm0
je 0x4fcaf0
mov eax, dword [esi + 0x54]
lea eax, [eax + eax*2]
add eax, ecx
mov dword [esi + 0x10], eax
lea eax, [esi + 0x20]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4fcb20
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x24]
push 0x206
push eax
push dword [esi + 0x10]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
nop dword [eax + eax]
mov eax, dword [esi + 8]
push eax
call fcn.005d31b1
add esp, 4
jmp 0x4fc9f3
mov dword [esi + 0x1c], 0
push dword [esi + 0x3c]
mov ebx, dword [esi + 0x18]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ebx, dword [esi + 0x1c]
test ebx, ebx
jle 0x4fcb7d
push 0
push ebx
push 0x15e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0x15d
jg 0x4fcb7d
add ebx, 0xa
push 0
push ebx
push 0x160
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret