Function at 0x401710
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450cfb
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
xor edx, edx
mov dword [ebp - 0x4c], eax
mov eax, ecx
mov word [ebp - 0x2c], dx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea edx, [eax + 2]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x401762
sub eax, edx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403280
push 1
push 0xffffffffffffffff
push 0x456324
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00402b70
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402520
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004028d0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], 8
jb 0x4017c4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004204e8
add esp, 4
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [esi + 0x38]
call fcn.00402a70
mov edx, dword [ebp - 0x4c]
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4017e0
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00403280
push 0x14
call fcn.00420ba1
add esp, 4
test eax, eax
je 0x401815
mov word [eax + 0xc], 0
mov dword [eax], vtable.ThreadUnins.0
jmp 0x401817
xor eax, eax
push 0
push 0x401a20
push 0
push 0x66
push edi
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 0
mov dword [esi + 0xc], eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xc
mov dword [ebp - 0x4c], eax
call esi
push eax
push 0xb
call esi
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x65
push edi
call ebx
push eax
mov eax, dword [ebp - 0x4c]
push 1
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x65
push edi
call ebx
mov ecx, dword [ebp - 0x4c]
push eax
push 0
push 0x80
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x46466c]
test eax, eax
jne 0x4018b5
push 0x54
call fcn.00420ba1
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4018ae
push eax
call fcn.004015a0
jmp 0x4018b0
xor eax, eax
mov dword [0x46466c], eax
mov edx, dword [eax + 0xc]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0x401ca0
push 0
push 0x67
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ecx, dword [ebp - 0x50]
push 0
push 0xc
mov dword [ebp - 0x4c], eax
mov dword [ecx + 0x10], eax
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x65
push edi
call ebx
mov edx, dword [ebp - 0x4c]
push eax
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x65
push edi
call ebx
push eax
mov eax, dword [ebp - 0x4c]
push 0
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x4020f0
push 0
push 0x68
push edi
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov ecx, dword [ebp - 0x50]
push 0
push 0xc
mov dword [ebp - 0x4c], eax
mov dword [ecx + 0x14], eax
call esi
push eax
push 0xb
call esi
push eax
push 1
push 0x65
push edi
call ebx
mov edx, dword [ebp - 0x4c]
push eax
push 1
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x65
push edi
call ebx
push eax
mov eax, dword [ebp - 0x4c]
push 0
push 0x80
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx + 0xc]
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
call esi
test eax, eax
je 0x4019e2
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x6c]
push ecx
call edi
lea edx, [ebp - 0x6c]
push edx
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x6c]
push eax
call esi
test eax, eax
jne 0x4019c6
cmp dword [ebp - 0x18], 8
jb 0x4019f4
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004204e8
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 8