Function at 0x405830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e6b1
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x45e200]
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 esi, ecx
lea eax, [esi - 0xbb8]
mov ebx, edx
cmp eax, 0xd
ja 0x40587f
mov ecx, dword [ebx + 0x9d4]
mov eax, dword [ebx + 4]
push ecx
call fcn.0040b030
add esp, 4
cmp esi, 0x3ea
jne 0x4058d2
mov edx, dword [ebx + 0x3bc]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4058ab
mov eax, dword [ebx + 0x3b8]
mov edx, dword [eax + 0x58]
lea ecx, [ebx + 0x3b8]
push 0
call edx
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
push 0
push 0
push 0x14
add eax, 0x3e8
push eax
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x405e72
cmp esi, 0x3eb
jne 0x405924
mov ecx, dword [ebx + 0x3bc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4058fe
mov edx, dword [ebx + 0x3b8]
mov eax, dword [edx + 0x58]
lea ecx, [ebx + 0x3b8]
push 0
call eax
mov eax, dword [ebx + 4]
push 0x3eb
mov dword [ebx + 0x9d4], 0x3eb
call fcn.0040b090
add esp, 4
xor eax, eax
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3ec
jne 0x405979
mov ecx, dword [ebx + 0x3bc]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405950
mov edx, dword [ebx + 0x3b8]
mov eax, dword [edx + 0x58]
lea ecx, [ebx + 0x3b8]
push 0
call eax
mov eax, dword [ebx + 4]
push 0x3ec
mov dword [ebx + 0x9d4], 0x3ec
call fcn.0040b090
add esp, 4
mov eax, 1
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3ed
jne 0x4059b1
mov esi, ebx
call fcn.00406060
mov eax, dword [ebx + 4]
push 0x3ed
mov dword [ebx + 0x9d4], 0x3ed
call fcn.0040b090
add esp, 4
mov eax, 2
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3ee
jne 0x4059e9
mov esi, ebx
call fcn.00406060
mov eax, dword [ebx + 4]
push 0x3ee
mov dword [ebx + 0x9d4], 0x3ee
call fcn.0040b090
add esp, 4
mov eax, 3
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3ef
jne 0x405a21
mov esi, ebx
call fcn.00406060
mov eax, dword [ebx + 4]
push 0x3ef
mov dword [ebx + 0x9d4], 0x3ef
call fcn.0040b090
add esp, 4
mov eax, 4
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3f0
jne 0x405a59
mov esi, ebx
call fcn.00406060
mov eax, dword [ebx + 4]
push 0x3f0
mov dword [ebx + 0x9d4], 0x3f0
call fcn.0040b090
add esp, 4
mov eax, 5
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3f1
jne 0x405a91
mov esi, ebx
call fcn.00406060
mov eax, dword [ebx + 4]
push 0x3f1
mov dword [ebx + 0x9d4], 0x3f1
call fcn.0040b090
add esp, 4
mov eax, 6
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbb8
jne 0x405aa8
mov eax, 7
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbb9
jne 0x405abf
mov eax, 8
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbba
jne 0x405ad6
mov eax, 9
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbbb
jne 0x405aed
mov eax, 0xa
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbbc
jne 0x405b04
mov eax, 0xb
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbbd
jne 0x405b1b
mov eax, 0xc
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbbe
jne 0x405b32
mov eax, 0xd
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbbf
jne 0x405b49
mov eax, 0xe
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbc0
jne 0x405b60
mov eax, 0xf
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbc1
jne 0x405b77
mov eax, 0x10
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbc2
jne 0x405b8e
mov eax, 0x11
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbc3
jne 0x405ba5
mov eax, 0x12
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbc4
jne 0x405bbc
mov eax, 0x13
call fcn.00405630
jmp 0x405e72
cmp esi, 0xbc5
jne 0x405bd3
mov eax, 0x14
call fcn.00405630
jmp 0x405e72
cmp esi, 0x3f2
jne 0x405dc4
mov esi, ebx
call fcn.00406060
mov eax, dword [ebx + 0x3a4]
lea esi, [ebx + 0x2f4]
xor edi, edi
cmp eax, edi
je 0x405c21
cmp dword [esi + 0xb8], eax
setae al
test al, al
je 0x405c21
push edi
push edi
push ebx
push 0x406180
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405e72
cmp byte [ebx + 0x2f8], 0
je 0x405e72
lea ecx, [ebp - 0x174]
push ecx
call fcn.00402a60
lea edx, [ebp - 0x174]
push edx
mov dword [ebp - 4], edi
call fcn.00402900
mov ecx, dword [ebp - 0x164]
mov edx, ecx
sub edx, dword [ebp - 0x168]
mov eax, 0x30c30c31
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x405c7c
mov ecx, dword [ebx + 4]
push ecx
call fcn.0040b4b0
mov ecx, dword [ebp - 0x164]
add esp, 4
sub ecx, dword [ebp - 0x168]
mov eax, 0x30c30c31
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x154], edi
je 0x405db4
lea eax, [ebp - 0xa8]
call fcn.00405e90
mov edi, dword [ebp - 0x154]
lea esi, [ebp - 0x174]
mov byte [ebp - 4], 1
call fcn.00402b10
lea ecx, [ebp - 0x150]
push ecx
mov edi, eax
call fcn.00403c50
mov edx, dword [ebp - 0x154]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0xe0]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa8], edx
call fcn.00404420
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0xfc]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00404420
push 0x454fc4
lea ecx, [ebp - 0x68]
call fcn.00402a00
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x68]
call fcn.00403220
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404420
sub esp, 0x94
mov ecx, esp
mov dword [ebp - 0x158], esp
push ecx
lea edi, [ebp - 0xa8]
mov dword [ebp - 0xa4], 1
call fcn.00405f70
mov edx, dword [ebx + 4]
push edx
call fcn.0040b210
add esp, 0x98
lea esi, [ebp - 0x150]
call fcn.00402810
mov esi, edi
mov byte [ebp - 4], 0
call fcn.00405ed0
mov ecx, dword [ebp - 0x164]
sub ecx, dword [ebp - 0x168]
mov esi, dword [ebp - 0x154]
mov eax, 0x30c30c31
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [ebp - 0x154], esi
cmp esi, eax
jb 0x405c9f
lea ebx, [ebp - 0x174]
call fcn.00402ac0
jmp 0x405e72
cmp esi, 0x3f3
jne 0x405e72
lea ecx, [ebp - 0x15c]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [ebx + 0x3bc]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
lea esi, [ebx + 0x3b8]
test eax, eax
jne 0x405e50
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push 0x454f84
push str.MOREFRAME
mov ecx, esi
call eax
push 0x1d1
push 0x2a8
push 0xa
push 0x64
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 4]
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
push 1
push 0
push 0
push eax
mov eax, dword [0x4d1c98]
lea ecx, [ebp - 0x184]
push ecx
push eax
mov ecx, esi
mov dword [ebx + 0x4a0], 0xffffff
call edx
test al, al
je 0x405e72
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x15c]
mov eax, dword [esi]
mov eax, dword [eax + 0x34]
push ecx
push edx
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x58]
push 5
mov ecx, esi
call eax
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.0043270e
mov esp, ebp
pop ebp
ret