Function at 0x48fb50
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 [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x490012
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 0x490012
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 0x48fbba
push 0
push edi
call eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x48fbc3
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 0x48fdce
test ebx, ebx
je 0x48fdcb
cmp dword [esi + 0x14], 8
jb 0x48fbf7
mov esi, dword [esi]
test esi, esi
je 0x48fc03
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x55b408]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
test ecx, ecx
je 0x48fc98
cmp byte [ebp + 0x10], 0
push 0x52c594
jne 0x48fc26
push 0x79
jmp 0x48fc28
push 0x7a
call fcn.0049c320
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x48fc98
mov ecx, dword [0x55b408]
push esi
call fcn.0049c320
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x48fc98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x48fc98
mov ecx, dword [0x55b408]
push 0
push 0
push 0
push 0x30000
push 1
push esi
call fcn.0049c320
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 0x48fc98
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 0x48fdc3
test eax, eax
je 0x48fdc3
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 0x48fdb1
cmp edi, 0x3ffffffe
jae 0x48fdb1
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004031c6
add esp, 4
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x48fdb1
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 0x48fda5
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 0x48fda8
push 0x38
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push eax
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x48fd70
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 0x48fda8
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 0x48fda8
mov edi, dword [ebp - 0x5c]
push edi
call fcn.004039c2
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 0x490009
cmp eax, 1
jbe 0x490010
test edi, edi
je 0x490010
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 0x48fe19
cmp dword [esi + 0x14], 8
jb 0x48fe00
mov eax, dword [esi]
jmp 0x48fe02
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 0x48fdf6
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 0x490006
test eax, eax
je 0x490006
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 0x48ffcb
jmp 0x48fe90
push 0
push eax
push 0x149
push edi
call ebx
mov esi, eax
test esi, esi
jle 0x48ffb8
cmp esi, 0x3ffffffe
jae 0x48ffb8
lea eax, [esi*2 + 2]
push eax
call fcn.004031c6
add esp, 4
mov dword [ebp - 0x68], eax
test eax, eax
je 0x48ffb8
lea ecx, [esi*2 + 2]
push ecx
push 0
push eax
call fcn.004dead0
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 0x48ffad
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 0x48ffad
push 0x38
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], 0
push 0
push eax
call fcn.004dead0
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 0x48ff5c
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 0x48ffad
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x1c], xmm0
test esi, esi
je 0x48ff82
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 0x48ffad
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.004039c2
add esp, 4
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp eax, dword [ebp - 0x6c]
jl 0x48fe90
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 0x490006
push 0
push esi
push 0x15e
push edi
call ebx
cmp esi, 0x15e
jge 0x490006
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.00401580
mov esp, ebp
pop ebp
ret