Function at 0x410790
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4527d9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x476040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov esi, dword [ebx + 8]
mov dword [ebp - 0x4c], 0
cmp byte [esi + 0x70], 0
je 0x4109f5
lea eax, [ebp - 0x78]
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x78]
lea eax, [esi + 0x40]
push eax
call fcn.00404240
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 3
mov eax, esi
cmp dword [esi + 0x14], 7
mov ecx, dword [esi + 0x10]
jbe 0x410815
mov eax, dword [esi]
mov byte [ebp - 4], 4
xorps xmm0, xmm0
push ecx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.00404650
mov edi, 2
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x4c], edi
and edi, 0xfffffffd
mov dword [ebp - 0x4c], edi
mov dword [ebp - 4], 3
or edi, 1
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 2
and edi, 0xfffffffe
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.0040c810
mov byte [ebp - 0x45], al
test al, al
jne 0x4108ba
mov byte [ebp - 4], 6
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x44]
call fcn.00404240
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
or edi, 4
lea ecx, [ebp - 0x44]
push eax
mov dword [ebp - 0x4c], edi
call fcn.0040b930
lea ecx, [ebp - 0x44]
call fcn.0040c810
and edi, 0xfffffffb
mov byte [ebp - 0x45], al
mov dword [ebp - 0x4c], edi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00404310
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00404310
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00404310
mov ecx, dword [ebx + 4]
cmp byte [ebp - 0x45], 0
je 0x410a15
lea eax, [ebp - 0x45]
mov byte [ebp - 0x45], 0
push eax
movzx eax, byte [esi + 0x34]
push eax
call fcn.00412080
mov ecx, dword [ebx + 4]
test eax, eax
js 0x410a25
cmp byte [ebp - 0x45], 0
je 0x4109f5
cmp byte [esi + 0x3c], 0
mov edx, dword [ebp - 0x50]
mov edx, dword [edx + 0xec]
mov dword [ebp - 0x54], edx
je 0x41095b
cmp dword [esi + 0x54], 7
lea eax, [esi + 0x40]
jbe 0x410926
mov eax, dword [eax]
cmp dword [esi + 0x2c], 7
lea ecx, [esi + 0x18]
jbe 0x410931
mov ecx, dword [ecx]
push edx
push dword [esi + 0x30]
push dword [esi + 0x38]
push eax
push ecx
push 0
call fcn.0040f810
add esp, 0x18
cmp byte [esi + 0x3d], 0
je 0x4109f5
test eax, eax
js 0x410a31
jmp 0x4109f5
cmp dword [esi + 0x54], 7
lea edi, [esi + 0x40]
jbe 0x410966
mov edi, dword [edi]
cmp dword [esi + 0x2c], 7
lea eax, [esi + 0x18]
mov dword [ebp - 0x50], eax
jbe 0x410977
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xb
push 0x1c
call fcn.00434f30
mov ecx, dword [ebp - 0x54]
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [eax], ecx
mov ecx, dword [esi + 0x30]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x38]
mov esi, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
or esi, 8
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0
push eax
push 0x41c730
push 0
push 0
mov dword [eax + 0xc], edi
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], fcn.0040f810
mov dword [ebp - 0x4c], esi
call fcn.0043e83c
add esp, 0x18
mov dword [ebp - 0x60], eax
test eax, eax
je 0x410a45
and esi, 0xfffffff7
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 0
jne 0x410a40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043488a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
push 0x80070002
push ecx
mov edx, 0xc2
call fcn.0040f6b0
push eax
push ecx
mov edx, 0xc5
call fcn.0040f6b0
push eax
push ecx
mov ecx, dword [ebx + 4]
mov edx, 0xd2
call fcn.0040f6b0
call fcn.0043e916
push 6
mov dword [ebp - 0x5c], 0
call fcn.004334d7
int3