Function at 0x4064a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
cmp dword [ebp + 8], 0
je 0x4064e0
mov eax, dword [ebp + 8]
push eax
call fcn.00409db0
add esp, 4
test eax, eax
jbe 0x4064e0
lea ecx, [ebp - 0x48]
push ecx
push 0x4230b4
mov edx, dword [ebp + 8]
push edx
call fcn.0040bb07
add esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x1c], eax
push 0xc
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0xe
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul esi, eax
mov dword [ebp - 0x4c], esi
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebp + 0xc], 0
je 0x406534
push 0x10
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x406544
mov eax, 2
jmp 0x4066dc
mov ecx, dword [ebp - 0x44]
push ecx
push 0
push 0x172
mov edx, dword [0x424274]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
mov eax, dword [0x424274]
push eax
push 0
push 0
push 0
push 0
push 0x54000000
push 0x4242b8
push str.msctls_progress32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x42428c], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
mov ecx, dword [0x424274]
push ecx
push 0
push 0
push 0
push 0
push 0x54000000
push 0x4242b9
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x424288], eax
push 1
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push 0x30
mov edx, dword [0x424288]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.004066f0
push 0x406bc0
push 0x32
mov eax, dword [0x423064]
push eax
mov ecx, dword [0x424274]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
lea edx, [ebp - 0x18]
push edx
mov eax, dword [0x424274]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x40], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x40]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
push 0x15
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [0x424274]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
mov eax, dword [0x424274]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x424274]
push ecx
call dword [sym.imp.USER32.dll_BringWindowToTop]
cmp dword [ebp - 0x48], 0
je 0x4066b0
push 0x406f30
mov edx, dword [ebp - 0x48]
imul edx, edx, 0x3e8
push edx
mov eax, dword [0x423060]
push eax
mov ecx, dword [0x424274]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4066da
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4066b0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret