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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x579630]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4a1f82
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4a1f82
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x417
push edi
call esi
push 0x416
push edi
mov ebx, eax
call esi
mov edi, eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
je 0x4a1b2a
push 0
push edi
call eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x4a1b33
push 0
push ebx
call eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x4a1d3e
test ebx, ebx
je 0x4a1d3b
cmp dword [esi + 0x14], 8
jb 0x4a1b67
mov esi, dword [esi]
test esi, esi
je 0x4a1b73
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x57f480]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x4a1c08
cmp byte [ebp + 0x10], 0
push 0x54a1a4
jne 0x4a1b96
push 0x79
jmp 0x4a1b98
push 0x7a
call fcn.004af520
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4a1c08
mov ecx, dword [0x57f480]
push esi
call fcn.004af520
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a1c08
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4a1c08
mov ecx, dword [0x57f480]
push 0
push 0
push 0
push 0x30000
push 1
push esi
call fcn.004af520
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
je 0x4a1c08
push eax
push 1
push 0xf7
push ebx
call edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push ebx
mov esi, eax
call edi
test esi, esi
je 0x4a1d33
test eax, eax
je 0x4a1d33
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [ebp - 0x60], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
test edi, edi
jle 0x4a1d21
cmp edi, 0x3ffffffe
jae 0x4a1d21
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004031d6
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x4a1d21
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 0
push ecx
push eax
push ebx
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4a1d15
lea eax, [ebp - 0xc]
push eax
push edi
mov edi, dword [ebp - 0x5c]
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4a1d18
push 0x38
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4a1ce0
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 ebx
movdqu xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4a1d18
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 ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4a1d18
mov edi, dword [ebp - 0x5c]
push edi
call fcn.004039d2
add esp, 4
push dword [ebp - 0x60]
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 5
push ebx
jmp 0x4a1f79
cmp eax, 1
jbe 0x4a1f80
test edi, edi
je 0x4a1f80
push 0
push 0
push 0x14b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
je 0x4a1d89
cmp dword [esi + 0x14], 8
jb 0x4a1d70
mov eax, dword [esi]
jmp 0x4a1d72
mov eax, 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 0x4a1d66
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14e
push edi
call ebx
push 0
push 0x15e
push 0x160
push edi
call ebx
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov esi, eax
push edi
mov dword [ebp - 0x5c], esi
call ebx
test esi, esi
je 0x4a1f76
test eax, eax
je 0x4a1f76
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
xor esi, esi
mov dword [ebp - 0x70], eax
push esi
push esi
push 0x146
push edi
mov dword [ebp - 0x60], esi
call ebx
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], eax
test ecx, ecx
jle 0x4a1f3b
jmp 0x4a1e00
push 0
push eax
push 0x149
push edi
call ebx
mov esi, eax
test esi, esi
jle 0x4a1f28
cmp esi, 0x3ffffffe
jae 0x4a1f28
lea eax, [esi*2 + 2]
push eax
call fcn.004031d6
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
je 0x4a1f28
lea ecx, [esi*2 + 2]
push ecx
push 0
push eax
call fcn.004f9050
add esp, 0xc
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push dword [ebp - 0x68]
push dword [ebp - 0x64]
push 0x148
push edi
call ebx
cmp eax, 0xffffffff
je 0x4a1f1d
mov eax, dword [ebp - 0x68]
lea ecx, [esi + esi]
xor edx, edx
mov word [ecx + eax], dx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4a1f1d
push 0x38
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push eax
call fcn.004f9050
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp - 0x44]
mov esi, eax
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4a1ecc
lea ecx, [ecx + edx*2]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0x60]
cmp ecx, eax
cmovg eax, ecx
cmp dword [ebp - 0x64], 0
mov dword [ebp - 0x60], eax
jne 0x4a1f1d
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
test esi, esi
je 0x4a1ef2
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 0x4a1f1d
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 - 0x68]
call fcn.004039d2
add esp, 4
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp eax, dword [ebp - 0x6c]
jl 0x4a1e00
mov esi, dword [ebp - 0x60]
push dword [ebp - 0x70]
push dword [ebp - 0x5c]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x5c]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
test esi, esi
jle 0x4a1f76
push 0
push esi
push 0x15e
push edi
call ebx
cmp esi, 0x15e
jge 0x4a1f76
push 0
lea eax, [esi + 0xa]
push eax
push 0x160
push edi
call ebx
push 5
push edi
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00401590
mov esp, ebp
pop ebp
ret