Function at 0x401830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x4342f4]
lea esi, [esp + 0xc]
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x48], eax
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x14], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x1c], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x24], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x2c], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x34], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x3c], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
push 4
call fcn.00405ecb
add esp, 4
mov dword [eax], 0x401750
push esi
push 0
push eax
push 0x405bb0
push 0
push 0
call fcn.0040e86c
add esp, 0x18
test eax, eax
mov dword [esp + 8], eax
je 0x401e32
cmp dword [esp + 0x44], 0
jne 0x401e2d
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
jmp 0x401ab6
and ebx, 3
mov dword [eax + ebx*4], esi
inc dword [0x435118]
push 0x43514c
call fcn.00408211
add esp, 4
push 0x43511c
call fcn.004085e2
add esp, 4
push 0x43511c
call fcn.004085d1
add esp, 4
test eax, eax
jne 0x401e27
movzx edi, word [0x435178]
inc edi
cmp di, 0x14
mov word [0x435178], di
ja 0x401bd4
push 4
call fcn.00405ecb
add esp, 4
mov esi, eax
mov word [eax + 2], di
call fcn.00412927
mov edx, 0x418505d3
mov ecx, eax
imul edx
mov eax, edx
shr edx, 0xa
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xfa1
neg eax
lea eax, [ecx + eax + 0x3e8]
mov word [esi], ax
push 0x43511c
call fcn.004085e2
add esp, 4
push 0x43511c
call fcn.004085d1
add esp, 4
test eax, eax
jne 0x401e27
mov ecx, dword [0x435114]
mov eax, dword [0x435118]
lea edx, [eax + ecx]
test dl, 3
jne 0x401b80
lea edx, [eax + 4]
shr edx, 2
cmp dword [0x435110], edx
ja 0x401b80
mov ecx, 0x435108
push 1
call fcn.00405bd0
mov ecx, dword [0x435114]
mov eax, dword [0x435118]
nop dword [eax + eax]
mov edi, dword [0x435110]
lea ebx, [edi*4 - 1]
add edi, 0x3fffffff
and ebx, ecx
mov dword [0x435114], ebx
add ebx, eax
mov eax, ebx
shr eax, 2
and edi, eax
mov eax, dword [0x43510c]
mov eax, dword [eax + edi*4]
test eax, eax
jne 0x401a90
push 0x10
call fcn.00405ecb
add esp, 4
mov ecx, dword [0x43510c]
mov dword [ecx + edi*4], eax
mov eax, dword [0x43510c]
mov eax, dword [eax + edi*4]
jmp 0x401a90
push 0x43511c
call fcn.004085e2
add esp, 4
push 0x43511c
call fcn.004085d1
add esp, 4
test eax, eax
jne 0x401e27
mov byte [0x435174], 1
push 0x43511c
call fcn.004085e2
add esp, 4
push 0x43514c
call fcn.004081f2
add esp, 4
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x24]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov esi, dword [esp + 0x34]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov esi, dword [esp + 0x44]
test esi, esi
je 0x401e41
call sub.KERNEL32.dll_GetCurrentThreadId
cmp esi, eax
je 0x401e48
push 0
push dword [esp + 0x48]
push dword [esp + 0x48]
call fcn.004088c6
add esp, 0xc
test eax, eax
jne 0x401e4f
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
cmp dword [esp + 0x3c], 0
jne 0x401e2d
cmp dword [esp + 0x34], 0
jne 0x401e2d
cmp dword [esp + 0x2c], 0
jne 0x401e2d
cmp dword [esp + 0x24], 0
jne 0x401e2d
cmp dword [esp + 0x1c], 0
jne 0x401e2d
cmp dword [esp + 0x14], 0
jne 0x401e2d
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00405f36
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call fcn.0040694c
call fcn.00413348
mov dword [esp + 0xc], 0
push 6
call fcn.00406979
push 1
call fcn.00406979
push 5
call fcn.00406979
push 2
call fcn.00406979
int3