Function at 0x40b0c0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x48f9b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ad650]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, 1
push ebx
call fcn.00457327
call fcn.00454183
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b10e
push 0x80004005
call fcn.00406520
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 + 0x24], 0
mov eax, dword [edi + 0xac]
mov ecx, dword [edi + 0x15c]
mov edx, dword [ecx - 0xc]
lea esi, [edi + 0x15c]
cmp eax, 4
je 0x40b253
cmp eax, 2
je 0x40b253
cmp eax, 3
je 0x40b253
cmp eax, ebx
jne 0x40b1ef
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00405cb0
call fcn.004344b0
add esp, 4
cmp eax, ebx
je 0x40b1d3
cmp eax, 2
je 0x40b1d3
cmp eax, 3
je 0x40b1d3
cmp eax, 4
je 0x40b1d3
push 0x2850
lea ecx, [esp + 0x18]
call fcn.00405f30
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov esi, 0x30
call fcn.00405cb0
mov ecx, esi
call fcn.00437750
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00406390
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov dword [edi + 0xb0], 3
cmp dword [edi + 0x8c], ebx
jne 0x40b1ef
mov dword [edi + 0xb0], 2
mov eax, ebx
call fcn.0040b540
mov eax, dword [edi + 0x20]
push ebx
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [edi + 0xac]
lea ecx, [edi + 0x84]
mov dword [0x4b50cc], edx
mov eax, dword [edi + 0x8c]
push ecx
mov ecx, 0x4b50c0
mov dword [0x4b50c8], eax
call fcn.00405ba0
call fcn.00454183
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b2d4
push 0x80004005
call fcn.00406520
lea eax, [edx - 8]
cmp eax, 0x38
ja 0x40b3cf
cmp edx, 0x40
jne 0x40b1ef
push ebx
push ecx
lea eax, [ecx - 0x10]
mov dword [esp + 0x20], esp
mov ebp, esp
push eax
call fcn.00405c40
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00434660
add esp, 8
test eax, eax
jne 0x40b1ef
push 0x2851
lea ecx, [esp + 0x18]
call fcn.00405f30
push 0x30
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00405cb0
call fcn.00433d70
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00406390
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
push 0x4b50c4
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.004352f0
mov ecx, dword [edi + 0xb0]
add esp, 4
mov dword [0x4b50d0], ecx
cmp dword [edi + 0xac], ebx
jne 0x40b33c
mov dword [0x4b50d4], ebx
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
cmp eax, 5
je 0x40b336
cmp eax, 0xd
je 0x40b336
cmp eax, 0xa
je 0x40b32a
cmp eax, 0x1a
jne 0x40b33c
mov dword [0x4b50d8], 0
jmp 0x40b33c
mov dword [0x4b50d8], ebx
mov eax, dword [edi + 0x90]
push 0
push 0
push 0
push 0x442a80
mov dword [0x4b5100], eax
mov ecx, dword [edi + 0x94]
push 0
push 0
mov dword [0x4b5104], ecx
mov dword [0x4b1e24], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b38f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 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 0x40b433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x284f
call fcn.0045bffd
test eax, eax
je 0x40b3ec
push 0x284f
push eax
lea ecx, [esp + 0x1c]
call fcn.00405e60
mov esi, dword [esp + 0x14]
push 0x30
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push esi
call fcn.00405c40
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00433d70
add esp, 8
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b433
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret