Function at 0x40b110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x490e50
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae650]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, 1
push ebx
call fcn.00458825
call fcn.00455695
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b164
push 0x80004005
call fcn.00406550
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
mov ecx, dword [edi + 0xac]
mov eax, dword [edi + 0x15c]
mov edx, dword [eax - 0xc]
lea ebp, [edi + 0x15c]
cmp ecx, 4
je 0x40b2a9
cmp ecx, 2
je 0x40b2a9
cmp ecx, 3
je 0x40b2a9
cmp ecx, ebx
jne 0x40b245
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
call fcn.00405cd0
call fcn.00434ab0
add esp, 4
cmp eax, ebx
je 0x40b229
cmp eax, 2
je 0x40b229
cmp eax, 3
je 0x40b229
cmp eax, 4
je 0x40b229
push 0x2850
lea ecx, [esp + 0x18]
call fcn.00405f50
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov esi, 0x30
call fcn.00405cd0
mov ecx, esi
call fcn.00438710
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004063c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xb0], 3
cmp dword [edi + 0x8c], ebx
jne 0x40b245
mov dword [edi + 0xb0], 2
mov eax, ebx
call fcn.0040b5e0
mov ecx, dword [edi + 0x20]
push ebx
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [edi + 0xac]
mov dword [0x4b60d4], eax
mov ecx, dword [edi + 0x8c]
lea edx, [edi + 0x84]
mov dword [0x4b60d0], ecx
push edx
mov ecx, 0x4b60c8
call fcn.00405bc0
call fcn.00455695
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b36e
push 0x80004005
call fcn.00406550
lea ecx, [edx - 8]
cmp ecx, 0x38
ja 0x40b46a
add eax, 0xfffffff0
cmp edx, 0x40
jne 0x40b329
push ebx
push ecx
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00405c60
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00434c60
add esp, 8
test eax, eax
jne 0x40b245
push 0x2851
lea ecx, [esp + 0x18]
call fcn.00405f50
push 0x30
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00405cd0
call fcn.004345b0
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004063c0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ecx
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00405c60
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00434c60
add esp, 8
test eax, eax
jne 0x40b245
push 0x2851
lea ecx, [esp + 0x18]
call fcn.00405f50
push 0x30
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
jmp 0x40b2ff
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x4b60cc
mov ecx, ebp
mov byte [esp + 0x2c], bl
call fcn.004360b0
mov ecx, dword [edi + 0xb0]
add esp, 4
mov dword [0x4b60d8], ecx
cmp dword [edi + 0xac], ebx
jne 0x40b3d7
mov dword [0x4b60dc], ebx
mov edx, dword [ebp]
mov eax, dword [edx - 0xc]
cmp eax, 5
je 0x40b3d1
cmp eax, 0xd
je 0x40b3d1
cmp eax, 0xa
je 0x40b3c5
cmp eax, 0x1a
jne 0x40b3d7
mov dword [0x4b60e0], 0
jmp 0x40b3d7
mov dword [0x4b60e0], ebx
mov eax, dword [edi + 0x90]
push 0
push 0
push 0
push 0x443de0
mov dword [0x4b6108], eax
mov ecx, dword [edi + 0x94]
push 0
push 0
mov dword [0x4b610c], ecx
mov dword [0x4b3028], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b42a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0x284f
call fcn.0045d52e
test eax, eax
je 0x40b487
push 0x284f
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e80
mov esi, dword [esp + 0x14]
push 0x30
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
call fcn.00405c60
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.004345b0
add esp, 8
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b4ce
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret