Function at 0x437810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf0c0
mov eax, dword fs:[0]
push eax
mov eax, 0x20ac
call fcn.004a1750
mov eax, dword [0x513b94]
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 ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0
push 0
mov eax, dword [ebx + 0xc]
and eax, 1
mov dword [ebp - 0x202c], esi
push 0x1042
push esi
mov dword [ebp - 0x2068], ebx
lea eax, [eax*2 - 1]
mov dword [ebp - 0x2028], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43789a
cmp dword [ebp - 0x2028], 0
jle 0x43788b
xor edi, edi
jmp 0x4378a0
mov ecx, 0x5181b8
call fcn.0042aa90
lea edi, [eax - 1]
jmp 0x4378a0
add edi, dword [ebp - 0x2028]
test byte [ebx + 0xc], 4
mov ecx, fcn.004b5428
mov eax, fcn.004b4f40
mov dword [ebp - 0x2024], edi
cmovne eax, ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x2070], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4378c3
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x2028], 0
mov dword [ebp - 0x2034], ecx
jle 0x4378ef
mov ecx, 0x5181b8
call fcn.0042aa90
sub eax, edi
jmp 0x4378f1
mov eax, edi
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2060], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
push 0x4e02d8
mov dword [ebp - 0x205c], eax
mov dword [ebp - 0x2058], edx
call fcn.0049c580
push eax
push 0x4e02d8
call fcn.0049c710
mov ebx, dword [sym.imp.USER32.dll_GetParent]
add esp, 0xc
cmp dword [ebp - 0x2064], 0
mov dword [ebp - 0x2054], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2050], eax
mov dword [ebp - 0x204c], 0
mov dword [ebp - 0x203c], 0
je 0x437a27
test esi, esi
je 0x437998
lea eax, [ebp - 0x2020]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x2018]
add eax, dword [ebp - 0x2020]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x2048], eax
mov eax, dword [ebp - 0x2014]
add eax, dword [ebp - 0x201c]
jmp 0x4379b7
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
cdq
sub eax, edx
sar eax, 1
push 1
mov dword [ebp - 0x2048], eax
call esi
mov esi, dword [ebp - 0x202c]
cdq
sub eax, edx
push 2
sar eax, 1
push esi
mov dword [ebp - 0x2044], eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x203c], esi
test esi, esi
je 0x4379fc
nop word [eax + eax]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x4379fc
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x4379e0
lea eax, [ebp - 0x207c]
push eax
push 0
lea eax, [ebp - 0x2064]
push eax
push 0x41d9d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [ebp - 0x202c]
mov dword [ebp - 0x2040], eax
push esi
mov dword [ebp - 4], 0
call fcn.00451f40
add esp, 4
mov ebx, eax
mov ecx, 0x5181b8
mov dword [ebp - 0x2078], ebx
call fcn.0042aa90
cmp edi, eax
jae 0x437bc7
xor eax, eax
mov dword [ebp - 0x206c], eax
test ebx, ebx
jle 0x437b87
mov dword [ebp - 0x20b0], eax
xor ecx, ecx
lea eax, [ebp - 0x2010]
mov word [ebp - 0x2010], cx
mov dword [ebp - 0x20a4], eax
lea eax, [ebp - 0x20b8]
push eax
push edi
push 0x1073
push esi
mov dword [ebp - 0x20a0], 0x1000
call dword [sym.imp.USER32.dll_SendMessageW]
lea edi, [ebp - 0x2010]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x437aa3
sub edi, ecx
xor esi, esi
mov ecx, dword [ebp - 0x2034]
sar edi, 1
mov eax, edi
sub eax, ecx
inc eax
mov dword [ebp - 0x2074], eax
test eax, eax
jle 0x437b66
lea ebx, [ebp - 0x2010]
mov eax, ebx
lea eax, [eax + ecx*2]
mov dword [ebp - 0x2030], eax
nop
mov eax, dword [ebp - 0x2068]
push ecx
push dword [eax + 0x10]
push ebx
call dword [ebp - 0x2070]
add esp, 0xc
test eax, eax
jne 0x437b47
mov eax, dword [ebp - 0x2068]
test byte [eax + 0xc], 2
je 0x437c78
test esi, esi
jle 0x437b1d
movzx eax, word [ebx - 2]
push eax
call fcn.004b4964
add esp, 4
test eax, eax
jne 0x437b47
mov eax, dword [ebp - 0x2034]
add eax, esi
cmp eax, edi
jae 0x437c78
mov eax, dword [ebp - 0x2030]
movzx eax, word [eax]
push eax
call fcn.004b4964
add esp, 4
test eax, eax
je 0x437c78
add dword [ebp - 0x2030], 2
inc esi
mov ecx, dword [ebp - 0x2034]
add ebx, 2
cmp esi, dword [ebp - 0x2074]
jl 0x437ae0
mov ebx, dword [ebp - 0x2078]
mov eax, dword [ebp - 0x206c]
mov edi, dword [ebp - 0x2024]
inc eax
mov esi, dword [ebp - 0x202c]
mov dword [ebp - 0x206c], eax
cmp eax, ebx
jl 0x437a61
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
jne 0x437d29
mov ecx, 0x5181b8
call fcn.0042aa90
add edi, dword [ebp - 0x2028]
mov ecx, 0x5181b8
inc dword [ebp - 0x2060]
mov dword [ebp - 0x2064], eax
mov dword [ebp - 0x2024], edi
call fcn.0042aa90
cmp edi, eax
jb 0x437a51
cmp dword [ebp - 0x2064], 0
je 0x437c44
mov eax, dword [ebp - 0x204c]
test eax, eax
jne 0x437bee
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [ebp - 0x204c]
test eax, eax
je 0x437be0
push 0
push 1
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x2040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x203c]
test esi, esi
je 0x437c44
mov edi, dword [sym.imp.USER32.dll_GetParent]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x437c44
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x437c28
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2054]
test ecx, ecx
je 0x437c5a
call fcn.0049c750
xor al, al
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.004a0e13
mov esp, ebp
pop ebp
ret
push 1
push dword [ebp - 0x2024]
push dword [ebp - 0x202c]
call fcn.00464b50
add esp, 0xc
cmp dword [ebp - 0x2064], 0
je 0x437d0c
mov eax, dword [ebp - 0x204c]
test eax, eax
jne 0x437cb5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [ebp - 0x204c]
test eax, eax
je 0x437ca7
push 0
push 1
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x2040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x203c]
test esi, esi
je 0x437d0c
mov edi, dword [sym.imp.USER32.dll_GetParent]
nop
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x437d0c
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x437cf0
mov ecx, dword [ebp - 0x2054]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x437d22
call fcn.0049c750
mov al, 1
jmp 0x437c5c
cmp dword [ebp - 0x2064], 0
je 0x437dac
mov eax, dword [ebp - 0x204c]
test eax, eax
jne 0x437d50
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [ebp - 0x204c]
test eax, eax
je 0x437d42
push 0
push 1
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push dword [ebp - 0x2040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x203c]
test esi, esi
je 0x437dac
mov edi, dword [sym.imp.USER32.dll_GetParent]
nop word [eax + eax]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp esi, eax
je 0x437dac
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
mov esi, eax
test esi, esi
jne 0x437d90
mov dword [ebp - 4], 2
jmp 0x437c4b