Function at 0x40ff30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf419
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 0x40ff9f
push eax
call fcn.0042f6e9
add esp, 4
mov byte [ebp - 0x50], 1
cmp dword [edi + 0x200c0], 0
mov byte [ebp - 4], 2
jne 0x40ffcc
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 0x410014
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 0x41001b
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 0x41004b
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.004136c0
jmp 0x41004d
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.0042c150
cmp dword [edi + 4], 0
je 0x410190
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], 0xa
call fcn.0042c850
lea eax, [ebp - 0x4c]
mov dword [esi], 0
cmp esi, eax
je 0x4100b6
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov dword [esi], eax
mov al, byte [ebp - 0x48]
mov byte [esi + 4], al
jmp 0x4100b9
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x18]
mov byte [esi + 4], 1
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x4100f5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4100eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102e5
push edx
push ecx
call fcn.0045e1a8
add esp, 8
mov byte [ebp - 4], 8
test edi, edi
je 0x41011e
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x41011e
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x410116
mov eax, dword [ecx]
push edi
jmp 0x41011c
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 0x41013a
push eax
call fcn.0042f6e9
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x410159
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 0x4102c6
mov ecx, dword [ebp + 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4102bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4102ea
jmp 0x4102bc
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], 0x40f470
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp + 0x38]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x4101d7
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.00412790
mov ecx, dword [ebp - 0x60]
add esp, 4
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x410219
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 0x410248
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov dword [esi], eax
mov al, byte [ebp - 0x48]
mov byte [esi + 4], al
jmp 0x41024b
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov byte [esi + 4], 1
test ecx, ecx
je 0x410267
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 0x410290
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x410290
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x410288
mov eax, dword [ecx]
push edi
jmp 0x41028e
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 0x4102ac
push eax
call fcn.0042f6e9
add esp, 4
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x410159
jmp 0x410141
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