Function at 0x403fa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551695
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5a0800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.00404680
push 0x7c
call fcn.004e6c7e
mov esi, eax
add esp, 4
mov dword [ebp - 0x44], esi
test esi, esi
je 0x404080
lea eax, [esi + 0xc]
mov dword [esi], vtable.std::_Associated_state_bool_.0
mov dword [esi + 4], 1
mov byte [esi + 8], 0
push eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.004c2a76
lea eax, [esi + 0x14]
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.004c374f
lea eax, [esi + 0x44]
push eax
call fcn.004c3a0e
add esp, 0x10
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov word [esi + 0x74], 0
mov byte [esi + 0x76], 0
mov dword [esi + 0x78], 0
jmp 0x404082
xor esi, esi
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x54], 0
mov byte [ebp - 0x50], 0
mov byte [ebp - 4], 1
test esi, esi
je 0x404249
mov byte [ebp - 0x50], 1
lea eax, [esi + 4]
mov dword [ebp - 0x60], esi
mov byte [ebp - 0x5c], 1
lock inc dword [eax]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x2c]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4040d2
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x14], eax
push 0x38
mov byte [ebp - 4], 4
call fcn.004e6c7e
mov edi, eax
add esp, 4
test edi, edi
je 0x404141
lea eax, [ebp - 0x58]
mov dword [edi], eax
lea edx, [edi + 0x10]
mov ecx, dword [ebp - 0x40]
mov dword [edi + 8], ecx
mov dword [edx + 0x24], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x404143
lea eax, [ebp - 0x38]
cmp ecx, eax
jne 0x404135
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 4]
call eax
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x404143
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
jmp 0x404143
mov dword [edx + 0x24], ecx
mov dword [ebp - 0x14], 0
jmp 0x404143
xor edi, edi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0
call fcn.00403480
mov dword [ebp - 0x44], edi
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
push 0
push edi
push 0x401b20
push 0
push 0
call fcn.0051190b
add esp, 0x18
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x40423b
mov ecx, dword [ebp - 0x48]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x404257
push ecx
push eax
call fcn.004c3578
add esp, 8
test eax, eax
jne 0x404257
mov ecx, dword [ebp - 0x14]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
test ecx, ecx
je 0x4041bd
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x4c], esi
mov byte [ebp - 0x48], 1
cmp byte [esi + 0x6c], 0
mov byte [ebp - 4], 7
jne 0x404250
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 8]
or eax, 0xffffffff
lea ecx, [esi + 4]
lock xadd dword [ecx], eax
jne 0x4041fe
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4041f6
mov eax, dword [ecx]
push esi
jmp 0x4041fc
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x58]
call fcn.00403200
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x40421e
mov edx, dword [ecx]
lea eax, [ebp + 8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e6d11
mov esp, ebp
pop ebp
ret 0x28
push 6
mov dword [ebp - 0x48], 0
call fcn.004c411e
push 4
call fcn.00406550
push 4
call fcn.00406550
push 1
call fcn.004c411e
int3