Function at 0x4887d0
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 [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x54], edi
test esi, esi
je 0x488c75
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x488c75
push ebx
push 0x417
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x416
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x48883b
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x488848
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
sub ecx, dword [edi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jne 0x488a3c
test ebx, ebx
je 0x488a39
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x48887b
mov eax, dword [eax]
test eax, eax
je 0x488887
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x5513c0]
test ecx, ecx
je 0x488917
cmp byte [ebp + 0x10], 0
push 0x526c18
jne 0x4888a4
push 0x79
jmp 0x4888a6
push 0x7a
call fcn.00487260
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x488917
mov ecx, dword [0x5513c0]
push edi
call fcn.00487260
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x488917
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x488917
mov ecx, dword [0x5513c0]
push 0
push 0
push 0
push 0x30000
push 1
push edi
call fcn.00487260
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
je 0x488917
push eax
push 1
push 0xf7
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x488a31
test eax, eax
je 0x488a31
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x488a1e
cmp esi, 0x3ffffffe
jae 0x488a1e
lea ecx, [esi + esi + 2]
push ecx
call fcn.004028ea
xor ecx, ecx
add esp, 4
mov dword [ebp - 0x54], eax
cmp eax, ecx
je 0x488a1e
lea edx, [esi + 1]
push edx
push eax
push ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x488a12
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x60]
push eax
push esi
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x488a12
xor esi, esi
push 0x38
lea edx, [ebp - 0x4c]
push esi
push edx
mov dword [ebp - 0x50], esi
call fcn.004e15a0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4889db
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
lea ecx, [eax + eax*2]
lea eax, [edx + ecx*2]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x14]
xor eax, eax
push ecx
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x488a12
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x60]
push 0x206
push edx
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00402d0e
add esp, 4
mov edx, dword [ebp - 0x58]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
push 5
push ebx
jmp 0x488c6e
cmp eax, 1
jbe 0x488c74
test esi, esi
je 0x488c74
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push esi
call ebx
mov edi, dword [edi]
mov eax, dword [ebp - 0x54]
cmp edi, dword [eax + 4]
je 0x488a88
cmp dword [edi + 0x14], 8
jb 0x488a70
mov eax, dword [edi]
jmp 0x488a72
mov eax, edi
push eax
push 0
push 0x143
push esi
call ebx
mov ecx, dword [ebp - 0x54]
add edi, 0x1c
cmp edi, dword [ecx + 4]
jne 0x488a66
push 0
push 0
push 0x14e
push esi
call ebx
push 0
push 0x15e
push 0x160
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_GetDC]
push 0
push 0
push 0x31
mov edi, eax
push esi
mov dword [ebp - 0x58], edi
call ebx
test edi, edi
je 0x488c6b
test eax, eax
je 0x488c6b
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
push 0
push 0x146
push esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], 0
call ebx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0
test eax, eax
jle 0x488c30
mov edx, dword [ebp - 0x64]
push 0
push edx
push 0x149
push esi
call ebx
mov edi, eax
test edi, edi
jle 0x488c1d
cmp edi, 0x3ffffffe
jae 0x488c1d
lea eax, [edi + edi + 2]
push eax
call fcn.004028ea
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x488c17
lea eax, [edi + edi + 2]
push eax
push 0
push ebx
call fcn.004e15a0
add esp, 0xc
xor eax, eax
push ebx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x64]
push eax
push 0x148
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x488c0e
lea edx, [ebp - 0x60]
push edx
push edi
xor ecx, ecx
mov word [ebx + edi*2], cx
mov edi, dword [ebp - 0x58]
push ebx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x488c0e
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
mov dword [ebp - 0x50], 0
call fcn.004e15a0
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edi, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x60]
test eax, eax
je 0x488bb5
lea edx, [edx + edi*2]
mov dword [ebp - 0x60], edx
cmp edx, dword [ebp - 0x54]
jle 0x488bbd
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x64], 0
jne 0x488c0e
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
test eax, eax
je 0x488be2
lea eax, [edi + edx]
lea ecx, [eax + edi*2]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x488c0e
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x60]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
call fcn.00402d0e
add esp, 4
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp eax, dword [ebp - 0x68]
jl 0x488af8
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x6c]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [ebp - 0x54]
test edi, edi
jle 0x488c6b
push 0
push edi
push 0x15e
push esi
call ebx
cmp edi, 0x15e
jge 0x488c6b
push 0
add edi, 0xa
push edi
push 0x160
push esi
call ebx
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401316
mov esp, ebp
pop ebp
ret