Function at 0x473b90
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 [0x5256a8]
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 0x473fc9
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 0x473fc9
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 0x473bfb
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
test ebx, ebx
je 0x473c08
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 0x473dc6
test ebx, ebx
je 0x473dc3
mov eax, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x473c3b
mov eax, dword [eax]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp + 0x10], 0
push 0x4ffe68
jne 0x473c5b
mov ecx, dword [0x528178]
mov eax, dword [ecx + 0x14]
push 0x79
jmp 0x473c66
mov edx, dword [0x528178]
mov eax, dword [edx + 0x14]
push 0x7a
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x473ccd
mov eax, dword [0x528178]
mov eax, dword [eax + 0x14]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x473ccd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x473ccd
mov ecx, dword [0x528178]
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 0x473ccd
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 0x473dbb
test eax, eax
je 0x473dbb
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 0x473da8
lea eax, [esi + 1]
test eax, eax
jle 0x473da8
lea edx, [esi + esi + 2]
push edx
call fcn.004028c6
add esp, 4
mov dword [ebp - 0x54], eax
test eax, eax
je 0x473da8
lea ecx, [esi + 1]
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x473d9c
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 0x473d9c
lea edx, [ebp - 0x50]
push edx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
test eax, eax
je 0x473d70
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 0x473d9c
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.00402cee
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 0x473fc2
cmp eax, 1
jbe 0x473fc8
test esi, esi
je 0x473fc8
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 0x473e12
cmp dword [edi + 0x14], 8
jb 0x473dfa
mov eax, dword [edi]
jmp 0x473dfc
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 0x473df0
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 0x473fbf
test eax, eax
je 0x473fbf
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 0x473f84
mov ecx, dword [ebp - 0x5c]
push 0
push ecx
push 0x149
push esi
call ebx
mov edi, eax
test edi, edi
jle 0x473f71
lea edx, [edi + 1]
test edx, edx
jle 0x473f71
lea eax, [edi + edi + 2]
push eax
call fcn.004028c6
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x473f6b
lea eax, [edi + edi + 2]
push eax
push 0
push ebx
call fcn.004b7120
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 0x473f62
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 0x473f62
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 0x473f1b
lea ecx, [ecx + edx*2]
mov dword [ebp - 0x64], ecx
cmp ecx, dword [ebp - 0x54]
jle 0x473f23
mov dword [ebp - 0x54], ecx
cmp dword [ebp - 0x5c], 0
jne 0x473f62
test eax, eax
je 0x473f36
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 0x473f62
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.00402cee
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 0x473e82
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 0x473fbf
push 0
push edi
push 0x15e
push esi
call ebx
cmp edi, 0x15e
jge 0x473fbf
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