Function at 0x5050f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564a08
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x16
push dword [edi + 0x11c]
push dword [edi + 0x118]
push 0
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [edi + 4]
lea ecx, [edi + 4]
call fcn.00500e50
mov ecx, dword [0x5ccda4]
lea eax, [ebp - 0x28]
push 0x23
push eax
call fcn.00491b8e
mov eax, dword [edi + 0x130]
mov ecx, edi
push 0
push 0
push 0
push 0x64
push 0x64
push eax
push eax
push 0x40f
lea eax, [ebp - 0xd4]
mov dword [ebp - 4], 0
push eax
call fcn.00505c10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push 0
push eax
push 0xffffffffffffffff
push dword [edi + 0x120]
lea eax, [ebp - 0xb4]
push 0x8c
push dword [edi + 0x130]
push 0x410
push eax
call fcn.00505c10
cmp dword [edi + 0x98], 8
lea ecx, [edi + 0x84]
mov edx, ecx
jb 0x5051cd
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
lea eax, [edx + eax*2]
jb 0x5051d7
mov ecx, dword [ecx]
xor esi, esi
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], si
mov edx, 7
mov dword [ebp - 0x54], edx
lea esi, [edi + 4]
cmp ecx, eax
je 0x505204
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x68]
call fcn.00408740
mov edx, dword [ebp - 0x54]
cmp edx, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x68]
cmovae eax, dword [ebp - 0x68]
mov dword [ebp - 0xc4], eax
mov eax, dword [edi + 0x120]
sub eax, 5
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xa8]
add eax, 3
push 0x414
push dword [esi]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x130]
mov dword [ebp - 0xb8], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp - 0xc4], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc0], eax
movups xmmword [ebp - 0xd4], xmm0
je 0x505309
push 1
push dword [edi + 0x104]
push 0x30
push 0x414
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push dword [ebp - 0xc4]
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x404
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x14
push 0x1e
push dword [ebp - 0x2c]
mov esi, eax
push dword [ebp - 0xbc]
push dword [ebp - 0xb8]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [edi + 0x104]
push 0x30
push 0x404
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push dword [ebp - 0xc4]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x9c]
lea esi, [edi + 4]
add eax, dword [ebp - 0xa0]
jmp 0x50530e
mov eax, 0xfffffffd
push 0x14
push eax
push dword [ebp - 0x2c]
mov eax, dword [ebp - 0xbc]
add eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0xb8]
add eax, 0xfffffffe
push eax
push 0
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0xd4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0xcc]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
movups xmm0, xmmword [ebp - 0xd4]
mov ecx, dword [0x5ccda4]
lea eax, [ebp - 0xdc]
push 0x24
push eax
movups xmmword [ebp - 0xb4], xmm0
call fcn.00491b8e
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
cmp ecx, eax
je 0x5053c9
call fcn.00408df0
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.00408e50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push 0
push eax
mov eax, dword [ebp - 0xa8]
push 0xffffffffffffffff
push dword [edi + 0x120]
add eax, 0xa
push eax
push dword [edi + 0x130]
lea eax, [ebp - 0xd4]
push 0x411
push eax
call fcn.00505c10
mov ecx, dword [0x5ccda4]
push 0x25
movups xmm0, xmmword [eax]
lea eax, [ebp - 0xdc]
push eax
movups xmmword [ebp - 0xb4], xmm0
call fcn.00491b8e
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x505471
call fcn.00408df0
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.00408e50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push 0
push eax
mov eax, dword [ebp - 0xa8]
push 0xffffffffffffffff
push dword [edi + 0x120]
add eax, 0xa
push eax
push dword [edi + 0x130]
lea eax, [ebp - 0xd4]
push 0x412
push eax
call fcn.00505c10
cmp dword [edi + 0xb0], 8
lea ecx, [edi + 0x9c]
mov edx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xb4], xmm0
jb 0x5054d8
mov edx, dword [ecx]
mov eax, dword [ecx + 0x10]
lea eax, [edx + eax*2]
jb 0x5054e2
mov ecx, dword [ecx]
xor esi, esi
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], si
mov edx, 7
mov dword [ebp - 0x3c], edx
lea esi, [edi + 4]
cmp ecx, eax
je 0x50550f
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.00408740
mov edx, dword [ebp - 0x3c]
cmp edx, 8
mov byte [ebp - 4], 4
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 0x120]
sub eax, 5
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa8]
add eax, 3
push 0x415
push dword [esi]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x130]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp - 0xc0], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc4], eax
movups xmmword [ebp - 0xd4], xmm0
je 0x505614
push 1
push dword [edi + 0x104]
push 0x30
push 0x415
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push dword [ebp - 0xc0]
push dword [ebp - 0xc4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x404
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x14
push 0x1e
push dword [ebp - 0xb8]
mov esi, eax
push dword [ebp - 0xbc]
push dword [ebp - 0x2c]
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push dword [edi + 0x104]
push 0x30
push 0x404
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push dword [ebp - 0xc0]
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0xa4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [ebp - 0x9c]
lea esi, [edi + 4]
add eax, dword [ebp - 0xa0]
jmp 0x505619
mov eax, 0xfffffffd
push 0x14
push eax
push dword [ebp - 0xb8]
mov eax, dword [ebp - 0xbc]
add eax, 0xfffffffe
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffffe
push eax
push 0
push dword [ebp - 0xc4]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xc4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0xd4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0xcc]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
movups xmm0, xmmword [ebp - 0xd4]
mov ecx, dword [0x5ccda4]
lea eax, [ebp - 0xdc]
push 0x26
push eax
movups xmmword [ebp - 0xb4], xmm0
call fcn.00491b8e
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
cmp ecx, eax
je 0x5056d4
call fcn.00408df0
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00408e50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
mov ecx, edi
push 0
push eax
mov eax, dword [ebp - 0xa8]
push 0xffffffffffffffff
push dword [edi + 0x120]
add eax, 0xa
push eax
push dword [edi + 0x130]
lea eax, [ebp - 0xd4]
push 0x413
push eax
call fcn.00505c10
mov ecx, dword [0x5ccda4]
push 0x27
movups xmm0, xmmword [eax]
lea eax, [ebp - 0xdc]
push eax
movups xmmword [ebp - 0xb4], xmm0
call fcn.00491b8e
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
cmp ecx, eax
je 0x50577c
call fcn.00408df0
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00408e50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x407
cmovae eax, dword [ebp - 0x28]
push dword [esi]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xbc], eax
mov eax, dword [edi + 0x130]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [ebp - 0xb8], 0
xorps xmm0, xmm0
mov dword [ebp - 0xc0], eax
movups xmmword [ebp - 0xd4], xmm0
je 0x505801
push 1
push dword [edi + 0x100]
push 0x30
push 0x407
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push dword [ebp - 0xb8]
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0xbc]
push 0x14
push 0x28
push 0xaa
add eax, 8
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffffe
push eax
push 0
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0xc0]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0xd4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0xcc]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
movups xmm0, xmmword [ebp - 0xd4]
push 0x407
push dword [esi]
movups xmmword [ebp - 0xb4], xmm0
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0xbc], eax
call dword [sym.imp.USER32.dll_GetDC]
push dword [edi + 0x100]
mov dword [ebp - 0xb8], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xbc]
mov dword [ebp - 0xc4], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [0x5ccda4]
inc eax
mov dword [ebp - 0xc0], eax
xorps xmm0, xmm0
push 0x27
lea eax, [ebp - 0xdc]
movq qword [ebp - 0x38], xmm0
push eax
call fcn.00491b8e
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
cmp ecx, eax
je 0x505904
call fcn.00408df0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00408e50
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x38]
push ecx
push dword [ebp - 0xc0]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0xb8]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
push dword [ebp - 0xc4]
push dword [ebp - 0xb8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
add eax, 0xa
push 0x16
push eax
add ecx, 0xa
mov dword [ebp - 0x34], eax
push ecx
push 0
push 0
push 0
push dword [ebp - 0xbc]
mov dword [ebp - 0x38], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x405
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [edi + 0xed], 0
mov dword [ebp - 0xbc], eax
je 0x505a40
mov ecx, dword [0x5ccda4]
lea eax, [ebp - 0xdc]
push 0x406
push eax
call fcn.00491b8e
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 8
cmp ecx, eax
je 0x5059e6
call fcn.00408df0
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00408e50
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [edi + 0x130]
cmovae eax, dword [ebp - 0x28]
push 0x14
push 0
push eax
mov eax, dword [edi + 0x11c]
push 0xfffffffffffffffe
push dword [edi + 0x120]
sub eax, ecx
sub eax, dword [0x5c7998]
push eax
push ecx
push 0x405
lea eax, [ebp - 0xd4]
mov ecx, edi
push eax
call fcn.00505c10
push 5
push dword [ebp - 0xbc]
jmp 0x505a43
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x40c
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [edi + 0xef], 0
mov dword [ebp - 0xbc], eax
je 0x505b6e
mov ecx, dword [0x5ccda4]
lea eax, [ebp - 0xdc]
push 0x40d
push eax
call fcn.00491b8e
mov dword [ebp - 0xb8], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
cmp ecx, eax
je 0x505ac0
call fcn.00408df0
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 4
call fcn.00408e50
mov edx, dword [edi + 0x130]
mov ecx, dword [edi + 0x11c]
sub ecx, edx
mov dword [ebp - 0x30], edx
sub ecx, dword [0x5c7998]
cmp byte [edi + 0xed], 0
mov dword [ebp - 0x2c], ecx
je 0x505b34
push 0x405
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0xb4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [edi + 0x130]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [edi + 0x130]
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x14
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0xfffffffffffffffe
push dword [edi + 0x120]
lea eax, [ecx - 0xa]
mov ecx, edi
push eax
push edx
push 0x40c
lea eax, [ebp - 0xd4]
push eax
call fcn.00505c10
push 5
push dword [ebp - 0xbc]
jmp 0x505b71
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x40c
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
movzx ecx, byte [edi + 0xf0]
push 0
push ecx
push 0xf1
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 0x130]
mov ecx, edi
mov eax, dword [edi + 0x120]
push 0
push 0
push 0
push dword [edi + 0x12c]
push dword [edi + 0x128]
push edx
add edx, 0xa
add eax, edx
push eax
push 0x401
lea eax, [ebp - 0xd4]
push eax
call fcn.00505c10
lea ecx, [ebp - 0x50]
call fcn.00408e50
lea ecx, [ebp - 0x68]
call fcn.00408e50
lea ecx, [ebp - 0x28]
call fcn.00408e50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret