Function at 0x4104b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf519
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x50b624]
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 eax, dword [ebp + 0x58]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x44], eax
lea eax, [edi + 0x200c4]
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movlpd qword [ebp - 0x54], xmm0
push eax
mov dword [ebp - 0x54], eax
call fcn.0042f2e0
add esp, 4
test eax, eax
je 0x41051f
push eax
call fcn.0042f6e9
add esp, 4
mov byte [ebp - 0x50], 1
cmp dword [edi + 0x200c0], 0
mov byte [ebp - 4], 2
jne 0x41054c
push 0
push 0
push edi
push 0x416e60
push 0
push 0
call fcn.004a9f2d
add esp, 0x18
mov dword [edi + 0x200c0], eax
push 0x14
call fcn.0045e178
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x410594
push dword [ebp - 0x44]
xorps xmm0, xmm0
push dword [ebp - 0x40]
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
lea eax, [ebp + 0x3c]
push dword [ebp + 0x54]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040c650
push dword [ebp - 0x3c]
mov ecx, edi
call fcn.004115f0
mov dword [ebp - 0x44], eax
jmp 0x41059b
mov dword [ebp - 0x44], 0
push 0xc
mov byte [ebp - 4], 2
call fcn.0045e178
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4105cb
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.004137c0
jmp 0x4105cd
xor eax, eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], eax
xorps xmm0, xmm0
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
movlpd qword [ebp - 0x4c], xmm0
call fcn.0042c1e0
cmp dword [edi + 4], 0
je 0x410710
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x38], 0xa
call fcn.0042c9a0
lea eax, [ebp - 0x4c]
mov dword [esi], 0
cmp esi, eax
je 0x410636
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov dword [esi], eax
mov al, byte [ebp - 0x48]
mov byte [esi + 4], al
jmp 0x410639
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
mov byte [esi + 4], 1
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x410675
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41066b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410865
push edx
push ecx
call fcn.0045e1a8
add esp, 8
mov byte [ebp - 4], 8
test edi, edi
je 0x41069e
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x41069e
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x410696
mov eax, dword [ecx]
push edi
jmp 0x41069c
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push dword [ebp - 0x54]
mov byte [ebp - 4], 9
call fcn.0042f305
add esp, 4
test eax, eax
je 0x4106ba
push eax
call fcn.0042f6e9
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x4106d9
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp + 0x38], 0
mov edx, dword [ebp + 0x50]
cmp edx, 0x10
jb 0x410846
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41083c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41086a
jmp 0x41083c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x94], 0x40f5a0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 0x38]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x410757
mov eax, dword [ecx]
lea edx, [ebp - 0x84]
push edx
mov eax, dword [eax]
call eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 0xc
push eax
call fcn.004128d0
mov ecx, dword [ebp - 0x60]
add esp, 4
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x410799
mov edx, dword [ecx]
lea eax, [ebp - 0x84]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [edi + 0x20098]
call fcn.0042c4a0
lea eax, [ebp - 0x4c]
mov dword [esi], 0
cmp esi, eax
je 0x4107c8
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov dword [esi], eax
mov al, byte [ebp - 0x48]
mov byte [esi + 4], al
jmp 0x4107cb
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov byte [esi + 4], 1
test ecx, ecx
je 0x4107e7
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 0xf
test edi, edi
je 0x410810
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x410810
mov ecx, dword [edi + 0xa4]
test ecx, ecx
je 0x410808
mov eax, dword [ecx]
push edi
jmp 0x41080e
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push dword [ebp - 0x54]
mov byte [ebp - 4], 0x10
call fcn.0042f305
add esp, 4
test eax, eax
je 0x41082c
push eax
call fcn.0042f6e9
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x4106d9
jmp 0x4106c1
push edx
push ecx
call fcn.0045e1a8
add esp, 8
mov eax, esi
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.0045e450
mov esp, ebp
pop ebp
ret 0x58
call fcn.0049f39a
call fcn.0049f39a
int3