Function at 0x4c6d70
Capabilities:
Extract resource via kernel32 functions
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x5edd38]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c7240
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4c723f
push esi
push 0x417
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x416
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4c6dd6
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x4c6de3
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx]
sub edx, ecx
lea eax, [edx - 0x18]
cmp eax, 0x18
jae 0x4c6fda
test esi, esi
je 0x4c6fda
cmp dword [ecx + 0x14], 8
jb 0x4c6e06
mov ecx, dword [ecx]
test ecx, ecx
je 0x4c6e12
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x5f3910]
test ecx, ecx
je 0x4c6ea2
cmp byte [ebp + 0x10], 0
push 0x5a9a08
jne 0x4c6e2f
push 0x79
jmp 0x4c6e31
push 0x7a
call fcn.004d9ad0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4c6ea2
mov ecx, dword [0x5f3910]
push edi
call fcn.004d9ad0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c6ea2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4c6ea2
mov ecx, dword [0x5f3910]
push 0
push 0
push 0
push 0x30000
push 1
push edi
call fcn.004d9ad0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
je 0x4c6ea2
push eax
push 1
push 0xf7
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x4c6fd2
test eax, eax
je 0x4c6fd2
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
jle 0x4c6fc0
cmp ebx, 0x3ffffffe
jae 0x4c6fc0
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
lfence
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406a8e
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4c6fc0
lea ecx, [ebx + 1]
xorps xmm0, xmm0
push ecx
push eax
lfence
push esi
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4c6fb4
lea eax, [ebp - 0xc]
push eax
push ebx
mov ebx, dword [ebp - 0x5c]
push ebx
push edi
lfence
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4c6fb7
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
lfence
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4c6f7d
mov eax, dword [ebp - 0x44]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx*2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4c6fb7
lfence
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 0x206
push eax
push dword [ebp - 0xc]
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4c6fb7
mov ebx, dword [ebp - 0x5c]
push ebx
call fcn.00409f38
add esp, 4
push dword [ebp - 0x60]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
push 5
push esi
jmp 0x4c7238
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4c723e
test edi, edi
je 0x4c723e
push 0
push 0
push 0x14b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x4c7034
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c701d
mov eax, dword [esi]
push eax
push 0
push 0x143
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
add esi, 0x18
cmp esi, dword [ebx + 4]
jne 0x4c7013
push 0
push 0
push 0x14e
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x15e
push 0x160
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov ebx, eax
push edi
mov dword [ebp - 0x60], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
je 0x4c7235
test eax, eax
je 0x4c7235
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
xor ebx, ebx
mov dword [ebp - 0x68], eax
push ebx
push ebx
push 0x146
push edi
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor esi, esi
mov dword [ebp - 0x6c], eax
test eax, eax
jle 0x4c71ed
lfence
nop
push 0
push esi
push 0x149
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jle 0x4c71e0
cmp ebx, 0x3ffffffe
jae 0x4c71e0
lea eax, [ebx*2 + 2]
push eax
lfence
call fcn.00406a8e
add esp, 4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4c71e0
lea ecx, [ebx*2 + 2]
push ecx
push 0
push eax
lfence
call fcn.0053f340
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0xc], xmm0
push dword [ebp - 0x64]
push esi
push 0x148
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x4c71d5
mov eax, dword [ebp - 0x64]
lea ecx, [ebx + ebx]
xor edx, edx
lfence
mov word [ecx + eax], dx
lea ecx, [ebp - 0xc]
push ecx
push ebx
mov ebx, dword [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4c71d5
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
lfence
call fcn.0053f340
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp - 0x44]
mov ebx, eax
mov ecx, dword [ebp - 0xc]
test ebx, ebx
je 0x4c7181
lea ecx, [ecx + edx*2]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x5c]
cmp ecx, eax
cmovg eax, ecx
mov dword [ebp - 0x5c], eax
test esi, esi
jne 0x4c71d5
xorps xmm0, xmm0
lfence
movups xmmword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x4c71a7
lea eax, [edx + ecx]
lea eax, [eax + edx*2]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4c71d5
lfence
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push 0x206
push eax
push dword [ebp - 0xc]
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp - 0x64]
call fcn.00409f38
add esp, 4
inc esi
cmp esi, dword [ebp - 0x6c]
jl 0x4c70b0
mov ebx, dword [ebp - 0x5c]
push dword [ebp - 0x68]
mov esi, dword [ebp - 0x60]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
jle 0x4c7235
push 0
push ebx
push 0x15e
push edi
lfence
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0x15e
jge 0x4c7235
push 0
lea eax, [ebx + 0xa]
push eax
push 0x160
push edi
lfence
call dword [sym.imp.USER32.dll_SendMessageW]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401682
mov esp, ebp
pop ebp
ret