Function at 0x407db0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x441ca0
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2a4]
sub eax, 1
je 0x407ee8
sub eax, 1
je 0x407e03
push dword [esi + 4]
call dword [0x444324]
pop edi
mov dword [esi + 4], 0
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
mov dword [esi + 0x2a4], 3
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0x4610e8
mov dword [ebp - 0x10], 1
call fcn.0040a2c0
mov dword [ebp - 4], 0xd
mov ecx, dword [eax]
test ecx, ecx
jne 0x407e39
mov ecx, 0x444568
mov eax, dword [esi + 0x9c]
push ecx
lea ecx, [esi + 0x9c]
call dword [eax + 0x1c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x407e60
push eax
call fcn.0042a2c0
add esp, 4
mov eax, dword [esi + 0x9c]
lea ecx, [esi + 0x9c]
push 1
call dword [eax + 0x18]
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0xa8]
call dword [0x4442f0]
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
push 0
push eax
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x44]
push eax
push 0x19e
push 0x1b8
push 0
push dword [esi + 0xa8]
call dword [0x44431c]
mov eax, dword [esi + 0x198]
lea ecx, [esi + 0x198]
push 0
call dword [eax + 0x18]
mov eax, dword [esi + 0x144]
lea ecx, [esi + 0x144]
push 1
call dword [eax + 0x18]
push 1
push 0
push dword [esi + 4]
call dword [0x4442f4]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x198]
lea ecx, [esi + 0x198]
push ebx
push 1
mov dword [esi + 0x2a4], 2
call dword [eax + 0x18]
mov eax, dword [esi + 0x9c]
lea ecx, [esi + 0x9c]
push 0
call dword [eax + 0x18]
mov eax, dword [esi + 0xf0]
lea ecx, [esi + 0xf0]
push 0
call dword [eax + 0x18]
mov eax, dword [esi + 0x144]
lea ecx, [esi + 0x144]
push 0
call dword [eax + 0x18]
push 0
push dword [esi + 4]
call dword [0x44430c]
push 1
push 0xf060
push eax
call dword [0x444308]
push 1
push 0
push dword [esi + 4]
call dword [0x4442f4]
mov ebx, dword [0x463630]
test ebx, ebx
jne 0x407f6c
mov ebx, 0x444568
mov edi, dword [0x463624]
test edi, edi
jne 0x407f7b
mov edi, 0x444568
lea ecx, [ebp - 0x74]
call fcn.004047b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], 0x4448ac
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
push 0x105
mov dword [ebp - 0x4c], 0x4610f4
mov byte [ebp - 0x48], 0
call fcn.0040d170
push dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x64], 0
push edi
push eax
call fcn.0040e2c0
lea eax, [ebp - 0x68]
push eax
call fcn.0040e690
mov ecx, dword [ebp - 0x68]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408001
sub ecx, edx
sar ecx, 1
cmp dword [ebp - 0x50], 0x105
mov dword [ebp - 0x5c], ecx
jae 0x40802b
push 0x105
lea ecx, [ebp - 0x58]
call fcn.0040d170
jmp 0x408032
mov dword [ebp - 0x54], 0x105
push dword [ebp - 0x4c]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 0
push ebx
push eax
call fcn.0040e2c0
lea eax, [ebp - 0x58]
push eax
call fcn.0040e690
add esp, 0x10
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00404860
cmp byte [ebp - 0x48], 0
pop ebx
je 0x4081b1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 5
mov eax, dword [0x463618]
test eax, eax
jne 0x408093
mov eax, 0x444568
push eax
push 0xf
lea eax, [ebp - 0x28]
push 0x4610e8
push eax
call fcn.0040a470
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.0040a450
mov eax, dword [0x463618]
add esp, 0x18
test eax, eax
jne 0x4080c0
mov eax, 0x444568
push eax
push 0x10
lea eax, [ebp - 0x28]
push 0x4610e8
push eax
call fcn.0040a470
add esp, 0x10
mov dword [ebp - 0x14], 0x4610e8
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11
lea ecx, [ebp - 0x40]
push eax
call fcn.0040a2c0
mov edi, eax
mov byte [ebp - 4], 6
mov ecx, dword [0x463618]
test ecx, ecx
jne 0x408103
mov ecx, 0x444568
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x4610e8
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], 3
call fcn.0040a330
mov byte [ebp - 4], 7
mov edi, dword [edi]
test edi, edi
jne 0x40812d
mov edi, 0x444568
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x408139
mov ecx, 0x444568
mov edx, dword [eax]
test edx, edx
jne 0x408144
mov edx, 0x444568
push 0
push 0x7f03
push 0x140
push 0x168
push 0
lea eax, [esi + 0x54]
push eax
push eax
push 0
push edi
push ecx
push edx
push 0
call fcn.0040c630
add esp, 0x30
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x40817f
push eax
call fcn.0042a2c0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x408193
push eax
call fcn.0042a2c0
add esp, 4
push 0
call dword [0x444328]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4081c1
push eax
call fcn.0042a2c0
add esp, 4
jmp 0x4081c1
push esi
push 0
push 0x4085b0
call fcn.0042ac78
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.00405c50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret