Function at 0x4131e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b42e
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
xor edi, edi
cmp eax, edi
jne 0x413330
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 4], edi
je 0x41342d
mov esi, dword [ebx + 0xb4]
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
xor edx, edx
cmp eax, edi
jbe 0x413258
cmp eax, edx
jbe 0x413326
mov ecx, dword [ecx + edx*4]
mov dword [ecx + 0x24], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, ecx
inc edx
sar eax, 2
cmp eax, edx
ja 0x413242
mov edx, dword [ebx + 0x98]
mov dword [edx + 0x38], edi
mov eax, dword [ebx + 0x98]
mov edi, 1
mov dword [eax + 0x24], edi
mov esi, dword [ebx + 0xa8]
lea ecx, [esi + 0x10]
push ecx
push 0
push esi
push 0x4156d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test byte [0x499d18], 1
mov dword [esi + 0xc], eax
mov edx, dword [ebx + 0x74]
mov dword [edx + 0x24], edi
mov eax, dword [ebx + 0x74]
mov dword [eax + 0x40], 0x48c23c
jne 0x4132cd
or dword [0x499d18], edi
mov dword [ebp - 4], 0
call fcn.004140a0
push 0x47b6e0
call fcn.004309d8
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x499c60
call fcn.004146b0
mov ecx, dword [ebx + 0xa8]
mov dword [ecx + 0x18], edi
mov edx, dword [ebx + 0x90]
cmp dword [edx + 0x38], 4
jne 0x413305
mov eax, dword [ebx + 0xa8]
mov dword [eax + 0x18], 2
call fcn.0040efd0
mov ecx, eax
call fcn.004149d0
mov ecx, dword [ebx + 0x94]
cmp dword [ecx + 0x38], 4
jne 0x41342d
call fcn.0040efd0
mov ecx, eax
call fcn.00414840
jmp 0x41342d
push str.invalid_vector_T__subscript
call fcn.0042bbe0
mov esi, 1
cmp eax, esi
jne 0x413357
mov edx, dword [ebx + 0x94]
cmp dword [edx + 0x38], 4
jne 0x41334a
call fcn.00413a60
mov eax, dword [ebx + 0x24]
push edi
push edi
push 2
push eax
jmp 0x413421
cmp eax, 2
jne 0x413377
mov ebx, dword [ebx + 0x90]
mov ecx, dword [ebx + 0x38]
sub ecx, 4
neg ecx
sbb ecx, ecx
and ecx, 4
mov dword [ebx + 0x38], ecx
jmp 0x41342d
cmp eax, 3
jne 0x413397
mov ebx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x38]
sub edx, 4
neg edx
sbb edx, edx
and edx, 4
mov dword [ebx + 0x38], edx
jmp 0x41342d
cmp eax, 8
jne 0x413403
mov esi, dword [ebx + 0xb0]
xor edi, edi
call fcn.00411840
mov esi, dword [ebx + 0xb8]
call fcn.00411840
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x24], 1
mov ecx, dword [ebx + 0x98]
mov dword [ecx + 0x38], edi
mov edi, dword [ebx + 0xa8]
mov ebx, dword [ebx + 0x24]
call fcn.00411b30
mov esi, eax
cmp dword [esi + 0x3c], 0
jne 0x41342d
lea edx, [esi + 0x38]
push edx
push 0
push esi
push 0x408dc0
push 0
push 0
mov dword [esi + 0x74], edi
mov dword [esi + 0x40], ebx
call fcn.0043000f
add esp, 0x18
mov dword [esi + 0x3c], eax
jmp 0x41342d
cmp eax, 0x10
jne 0x41342d
mov eax, dword [ebx + 0x94]
cmp dword [eax + 0x38], 4
jne 0x413419
call fcn.00413a60
mov ecx, dword [ebx + 0x24]
push edi
push edi
push 2
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [0x499bf0], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4