Function at 0x4152a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x655140]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
jne 0x415460
cmp edi, 0xf
jne 0x41532c
lea eax, [esp + 0x40]
mov dword [esp + 0x1c], 1
push eax
push dword [esi + 4]
lea edi, [esi - 0x34]
call dword [sym.imp.USER32.dll_BeginPaint]
sub esp, 0x10
mov esi, eax
mov ecx, esp
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
push esi
mov ecx, edi
call fcn.00439cb0
lea eax, [esp + 0x40]
push eax
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_EndPaint]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
cmp edi, 0x85
je 0x415d38
cmp edi, 0x14
je 0x415d38
cmp edi, 5
jne 0x415412
cmp dword [esi + 0x2c], 0
lea edi, [esi - 0x34]
mov dword [esp + 0x1c], 1
je 0x4153d8
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4153d8
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4153d8
lea eax, [esp + 0x30]
xorps xmm0, xmm0
push eax
push dword [edi + 0x38]
movaps xmmword [esp + 0x38], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [edi + 0x60]
lea edx, [esp + 0x8c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x5c]
call eax
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4153d8
mov ecx, dword [edi + 0x60]
movups xmm0, xmmword [esp + 0x30]
push eax
sub esp, 0x10
mov edx, dword [ecx]
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x58]
mov ecx, dword [edi + 0x60]
mov eax, dword [ecx]
call dword [eax + 0x54]
push 1
push 0
push dword [edi + 0x38]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [edi + 0xc4], 0
je 0x4155a0
cmp dword [ebp + 0x10], 1
je 0x4155a0
mov edx, dword [ebp + 0x14]
mov ecx, edi
mov esi, dword [edi]
mov eax, edx
shr eax, 0x10
push eax
movzx eax, dx
push eax
call dword [esi + 0x68]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
cmp edi, 0x4e
je 0x415d38
cmp edi, 0x215
jne 0x415478
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
lea ecx, [esi - 0x34]
call fcn.004398c0
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jne 0x4157a1
mov dword [esp + 0x1c], 1
mov eax, ecx
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 1
jne 0x415493
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push eax
sub esp, 0xc
lea ecx, [esi - 0x34]
call fcn.00439a70
jmp 0x41543f
cmp edi, 2
jne 0x4154b2
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
sub esp, 0xc
lea ecx, [esi - 0x34]
call fcn.0043aef0
jmp 0x41543f
cmp edi, 0x5f5
jne 0x4154d9
lea ecx, [esi - 0x34]
mov dword [esp + 0x1c], 1
call fcn.00439b50
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
cmp edi, 0x200
jne 0x415502
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
lea ecx, [esi - 0x34]
call fcn.00439eb0
jmp 0x4156ef
cmp edi, 0xa0
jne 0x415547
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
lea ecx, [esi - 0x34]
call fcn.00439eb0
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0
mov dword [ecx], eax
jne 0x4157a1
mov dword [esp + 0x1c], 1
lea eax, [edi - 0x2b]
jmp 0x415c44
cmp edi, 0x2a3
je 0x415557
cmp edi, 0x2a2
jne 0x4155af
mov eax, dword [esi + 0x34]
mov byte [esi + 0x94], 0
mov dword [esp + 0x1c], 1
test eax, eax
je 0x415597
lea ecx, [esp + 0x1c]
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x5f8
push eax
call fcn.0043b440
mov eax, dword [esi + 0x34]
test eax, eax
je 0x415597
mov dword [esi + 0x34], 0
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [esi - 0x34]
lea ecx, [esi - 0x34]
call dword [eax + 0x4c]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
cmp edi, 0x20a
jne 0x4155d8
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043acc0
jmp 0x4156ef
cmp edi, 0x201
jne 0x415601
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043a2d0
jmp 0x4156ef
cmp edi, 0x204
jne 0x41562a
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043b8a0
jmp 0x4156ef
cmp edi, 0x205
jne 0x415653
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043bb20
jmp 0x4156ef
cmp edi, 0xa4
jne 0x41567c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043bf90
jmp 0x415526
cmp edi, 0xa5
jne 0x4156a5
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043c1e0
jmp 0x415526
cmp edi, 0x203
jne 0x4156cb
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
lea ecx, [esi - 0x34]
push dword [ebp + 0x10]
push edi
call fcn.0043b630
jmp 0x4156ef
cmp edi, 0x202
jne 0x415713
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
lea ecx, [esi - 0x34]
call fcn.0043a5c0
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
jne 0x4157a1
mov dword [esp + 0x1c], 1
lea eax, [edi - 0x133]
jmp 0x415cba
cmp edi, 0xa2
jne 0x41573c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
lea ecx, [esi - 0x34]
call fcn.0043a5c0
jmp 0x415526
cmp edi, 0x20
jne 0x415762
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
lea ecx, [esi - 0x34]
call fcn.0043a9c0
jmp 0x41543f
cmp edi, 0x84
jne 0x415787
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
sub esp, 0xc
lea ecx, [esi - 0x34]
call fcn.0043b050
jmp 0x415526
cmp edi, 0x83
je 0x415d38
cmp edi, 0x86
jne 0x4157bc
mov dword [ecx], 1
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 0x100
jne 0x415804
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4157f9
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edx
call fcn.0043b440
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx], edx
jmp 0x415531
xor edx, edx
test eax, eax
mov dword [ecx], edx
jmp 0x415531
cmp edi, 0x101
jne 0x415841
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4157f9
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edx
call fcn.0043b440
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx], edx
jmp 0x415531
cmp edi, 0x102
jne 0x41587e
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4157f9
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edx
call fcn.0043b440
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx], edx
jmp 0x415531
cmp edi, 0x104
jne 0x4158bf
mov edx, dword [esi + 0x2c]
mov eax, 1
mov dword [esp + 0x1c], eax
test edx, edx
je 0x4157f9
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edx
call fcn.0043b440
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [ecx], edx
jmp 0x415531
cmp edi, 0x18
jne 0x415954
mov ecx, dword [esi + 0x2c]
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x4158db
mov eax, dword [ecx]
push edi
call dword [eax + 0x100]
cmp dword [esi + 0xb8], 0
mov dword [esp + 0x1c], 0
je 0x4155a0
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x4155a0
mov eax, dword [eax + 0x38]
test edi, edi
je 0x41591d
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
test eax, eax
je 0x4155a0
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
cmp edi, 0x47
jne 0x415976
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
push eax
sub esp, 0xc
lea ecx, [esi - 0x34]
call fcn.0043d1d0
jmp 0x415526
cmp edi, 0x46
jne 0x415abc
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x1c], 0
test edx, edx
jne 0x4159a0
mov dword [ecx], edx
lea eax, [edi - 0x2b]
mov dword [esp + 0x1c], 1
jmp 0x415c47
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x415a82
mov esi, dword [ebp + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x14]
add eax, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x40]
push eax
push 2
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
push eax
mov dword [esp + 0x4c], 0x28
call dword [sym.imp.USER32.dll_MonitorFromRect]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov esi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x34]
push eax
call esi
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x90]
push eax
call esi
mov eax, dword [esp + 0x48]
neg eax
push eax
mov eax, dword [esp + 0x48]
neg eax
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_EqualRect]
mov edx, dword [ebp + 0x14]
test eax, eax
jne 0x415a93
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
cmp dword [edx + 0x10], eax
jle 0x415a6c
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
cmp dword [edx + 0x14], eax
jle 0x415a97
mov dword [edx + 0x14], eax
jmp 0x415a97
mov eax, dword [esi - 0x34]
lea ecx, [esi - 0x34]
push dword [ebp + 0x14]
call dword [eax + 0x54]
mov edx, dword [ebp + 0x14]
jmp 0x415a97
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jne 0x4157a1
mov dword [esp + 0x1c], 1
lea eax, [edi - 0x2b]
jmp 0x415c47
cmp edi, 0x24
jne 0x415b5f
push 1
push dword [esi + 4]
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movups xmmword [esp + 0x28], xmm0
call dword [sym.imp.USER32.dll_MonitorFromWindow]
test eax, eax
je 0x415b23
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0x28
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x48]
neg eax
push eax
mov eax, dword [esp + 0x48]
neg eax
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x415b34
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 0
jmp 0x415bb5
cmp edi, 0xf48
jne 0x415bcd
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x1c], 1
test esi, esi
jne 0x415b7f
mov dword [ecx], edi
jmp 0x4157a1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415ba1
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push edx
push dword [ebp + 0x14]
push dword [esi + 8]
mov eax, dword [eax + 0xc0]
push dword [esi + 4]
push ecx
call eax
mov edi, eax
cmp dword [esi + 0x10], 0
je 0x415baf
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov eax, dword [esp + 0x14]
mov dword [eax], edi
cmp dword [esp + 0x1c], 0
jne 0x4157a1
mov dword [esp + 0x1c], 1
jmp 0x41545a
cmp edi, 0x2e0
je 0x415d38
mov eax, 1
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x415c28
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x415c0b
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push edx
call fcn.0043b440
mov ecx, dword [esp + 0x14]
mov edx, eax
mov eax, dword [esp + 0x1c]
jmp 0x415c0d
xor edx, edx
mov dword [ecx], edx
test eax, eax
jne 0x4157a1
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x14]
jmp 0x41545a
cmp edi, 0x132
ja 0x415ca9
je case.0x415cc1.307
lea eax, [edi - 0x2b]
cmp eax, 0xea
ja case.default.0x415cc1
mov edx, dword [ebp + 0x14]
movzx eax, byte [eax + 0x415d7c]
jmp dword [eax*4 + 0x415d5c]
test edx, edx
je case.0x415cc1.313
jmp case.0x415c4e.46
mov ecx, dword [edx]
jmp 0x415cf8
mov eax, dword [ebp + 0x10]
test eax, eax
je case.0x415cc1.313
mov ecx, dword [edx + 0x14]
jmp 0x415cfb
cmp dword [ebp + 0x10], 0
je case.0x415cc1.313
push dword [edx + 4]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebp + 0x14]
mov ecx, eax
jmp 0x415cf8
mov eax, dword [ebp + 0x10]
test eax, eax
je case.0x415cc1.313
mov ecx, dword [edx + 8]
jmp 0x415cfb
mov eax, dword [ebp + 0x10]
test eax, eax
je case.0x415cc1.313
mov ecx, dword [edx + 0xc]
jmp 0x415cfb
lea eax, [edi - 0x133]
cmp eax, 0xdd
ja case.default.0x415cc1
movzx eax, byte [eax + 0x415e74]
jmp dword [eax*4 + 0x415e68]
mov eax, dword [ebp + 0x10]
movzx ecx, ax
sub ecx, 1
je 0x415cec
sub ecx, 1
je 0x415cec
shr eax, 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, dword [ebp + 0x14]
mov ecx, eax
jmp 0x415cf8
mov edx, dword [ebp + 0x14]
mov ecx, edx
jmp 0x415cfb
mov edx, dword [ebp + 0x14]
mov ecx, edx
mov eax, dword [ebp + 0x10]
test ecx, ecx
je case.0x415cc1.313
push edx
push eax
lea eax, [edi + 0x2000]
push eax
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
xor eax, eax
cmp dword [esp + 0x1c], eax
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x18
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.004b3f1a
mov esp, ebp
pop ebp
ret 0x18