Function at 0x4791c0
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 [0x522638]
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 0x4795f9
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 0x4795f9
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 0x47922b
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x479238
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 0x4793f6
test ebx, ebx
je 0x4793f3
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x47926b
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp + 0x10], 0
push 0x4fdf50
jne 0x47928b
mov ecx, dword [0x52513c]
mov eax, dword [ecx + 0x14]
push 0x79
jmp 0x479296
mov edx, dword [0x52513c]
mov eax, dword [edx + 0x14]
push 0x7a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4792fd
mov eax, dword [0x52513c]
mov eax, dword [eax + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4792fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4792fd
mov ecx, dword [0x52513c]
mov eax, dword [ecx + 0x14]
push 0
push 0
push 0
push 0x30000
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
test eax, eax
je 0x4792fd
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 0x4793eb
test eax, eax
je 0x4793eb
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 0x4793d8
lea eax, [esi + 1]
test eax, eax
jle 0x4793d8
lea edx, [esi + esi + 2]
push edx
call fcn.00402886
add esp, 4
mov dword [ebp - 0x54], eax
test eax, eax
je 0x4793d8
lea ecx, [esi + 1]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4793cc
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x64]
push eax
push esi
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4793cc
lea edx, [ebp - 0x50]
push edx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x4793a0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x64]
lea eax, [eax + eax*2]
lea edx, [ecx + eax*2]
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4793cc
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x64]
push 0x206
push ecx
push edx
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x54]
push eax
call fcn.00402cae
add esp, 4
mov ecx, dword [ebp - 0x58]
push ecx
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 0x4795f2
cmp eax, 1
jbe 0x4795f8
test esi, esi
je 0x4795f8
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push esi
call ebx
mov edi, dword [edi]
mov edx, dword [ebp - 0x54]
cmp edi, dword [edx + 4]
je 0x479442
cmp dword [edi + 0x14], 8
jb 0x47942a
mov eax, dword [edi]
jmp 0x47942c
mov eax, edi
push eax
push 0
push 0x143
push esi
call ebx
mov eax, dword [ebp - 0x54]
add edi, 0x1c
cmp edi, dword [eax + 4]
jne 0x479420
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 0x4795ef
test eax, eax
je 0x4795ef
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 - 0x5c], 0
test eax, eax
jle 0x4795b4
mov ecx, dword [ebp - 0x5c]
push 0
push ecx
push 0x149
push esi
call ebx
mov edi, eax
test edi, edi
jle 0x4795a1
lea edx, [edi + 1]
test edx, edx
jle 0x4795a1
lea eax, [edi + edi + 2]
push eax
call fcn.00402886
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47959b
lea eax, [edi + edi + 2]
push eax
push 0
push ebx
call fcn.004b8020
mov eax, dword [ebp - 0x5c]
add esp, 0xc
push ebx
push eax
push 0x148
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x479592
lea edx, [ebp - 0x64]
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 0x479592
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x64]
test eax, eax
je 0x47954b
lea ecx, [ecx + edx*2]
mov dword [ebp - 0x64], ecx
cmp ecx, dword [ebp - 0x54]
jle 0x479553
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x5c], 0
jne 0x479592
test eax, eax
je 0x479566
lea eax, [edx + ecx]
lea ecx, [eax + edx*2]
mov dword [ebp - 0x64], ecx
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x479592
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x64]
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.00402cae
add esp, 4
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, dword [ebp - 0x68]
jl 0x4794b2
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 0x4795ef
push 0
push edi
push 0x15e
push esi
call ebx
cmp edi, 0x15e
jge 0x4795ef
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.00401306
mov esp, ebp
pop ebp
ret