Function at 0x4d66b0
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 [0x62cf50]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4d6b80
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 0x4d6b7f
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 0x4d6716
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x4d6723
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 0x4d691a
test esi, esi
je 0x4d691a
cmp dword [ecx + 0x14], 8
jb 0x4d6746
mov ecx, dword [ecx]
test ecx, ecx
je 0x4d6752
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x634a80]
test ecx, ecx
je 0x4d67e2
cmp byte [ebp + 0x10], 0
push 0x5df900
jne 0x4d676f
push 0x79
jmp 0x4d6771
push 0x7a
call fcn.004ea060
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4d67e2
mov ecx, dword [0x634a80]
push edi
call fcn.004ea060
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4d67e2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4d67e2
mov ecx, dword [0x634a80]
push 0
push 0
push 0
push 0x30000
push 1
push edi
call fcn.004ea060
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
je 0x4d67e2
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 0x4d6912
test eax, eax
je 0x4d6912
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 0x4d6900
cmp ebx, 0x3ffffffe
jae 0x4d6900
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
lfence
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406b90
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4d6900
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 0x4d68f4
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 0x4d68f7
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
lfence
call fcn.0056aed0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4d68bd
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 0x4d68f7
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 0x4d68f7
mov ebx, dword [ebp - 0x5c]
push ebx
call fcn.0040a1b5
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 0x4d6b78
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4d6b7e
test edi, edi
je 0x4d6b7e
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 0x4d6974
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4d695d
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 0x4d6953
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 0x4d6b75
test eax, eax
je 0x4d6b75
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 0x4d6b2d
lfence
nop
push 0
push esi
push 0x149
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jle 0x4d6b20
cmp ebx, 0x3ffffffe
jae 0x4d6b20
lea eax, [ebx*2 + 2]
push eax
lfence
call fcn.00406b90
add esp, 4
mov dword [ebp - 0x64], eax
test eax, eax
je 0x4d6b20
lea ecx, [ebx*2 + 2]
push ecx
push 0
push eax
lfence
call fcn.0056aed0
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 0x4d6b15
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 0x4d6b15
push 0x3c
lea eax, [ebp - 0x58]
push 0
push eax
lfence
call fcn.0056aed0
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 0x4d6ac1
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 0x4d6b15
xorps xmm0, xmm0
lfence
movups xmmword [ebp - 0x1c], xmm0
test ebx, ebx
je 0x4d6ae7
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 0x4d6b15
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.0040a1b5
add esp, 4
inc esi
cmp esi, dword [ebp - 0x6c]
jl 0x4d69f0
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 0x4d6b75
push 0
push ebx
push 0x15e
push edi
lfence
call dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, 0x15e
jge 0x4d6b75
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.004016cd
mov esp, ebp
pop ebp
ret