Function at 0x40d590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a90ae
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4d5210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x38], 0
jne 0x40d65f
lea ecx, [ebp - 0xb9]
call fcn.00408070
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xb9]
call fcn.00447724
mov ebx, eax
lea esi, [edi + 0x28]
cmp esi, ebx
je 0x40d62f
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x40d60a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040c0b0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40d622
mov eax, dword [esi]
jmp 0x40d624
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.0040fe40
mov eax, dword [ebp - 0x8c]
cmp eax, 0x10
jb 0x40d64d
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.0040c0b0
lea ecx, [ebp - 0xb9]
mov dword [ebp - 4], 0xffffffff
call fcn.0044c160
cmp dword [edi + 0x68], 0
jne 0x40d727
push 7
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4b04e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00407a30
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00440737
add esp, 8
lea esi, [edi + 0x58]
mov ebx, eax
cmp esi, ebx
je 0x40d6e4
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x40d6bf
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040c0b0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40d6d7
mov eax, dword [esi]
jmp 0x40d6d9
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.0040fe40
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x40d6f9
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040c0b0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x40d727
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407b30
cmp dword [edi + 0x80], 0
jne 0x40d7f2
push 7
xor eax, eax
mov dword [ebp - 0x2c], 7
push 0x4b05a0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00407a30
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00440737
add esp, 8
lea esi, [edi + 0x70]
mov ebx, eax
cmp esi, ebx
je 0x40d7af
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x40d78a
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040c0b0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40d7a2
mov eax, dword [esi]
jmp 0x40d7a4
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.0040fe40
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x40d7c4
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.0040c0b0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x40d7f2
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407b30
cmp dword [0x4d6a60], 0
jne 0x40d800
call fcn.0040bbf0
mov ecx, dword [0x4d6a60]
lea eax, [ebp - 0xb8]
push eax
call fcn.0043a1c2
push eax
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 6
push eax
call fcn.00440737
add esp, 8
lea esi, [edi + 0x40]
mov ebx, eax
cmp esi, ebx
je 0x40d86a
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x40d845
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.0040c0b0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x40d85d
mov eax, dword [esi]
jmp 0x40d85f
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.0040fe40
mov eax, dword [ebp - 0x74]
cmp eax, 0x10
jb 0x40d885
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.0040c0b0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
cmp eax, 8
jb 0x40d8b8
inc eax
lea ecx, [ebp - 0xb8]
push eax
push dword [ebp - 0xb8]
call fcn.00407b30
cmp dword [ebp + 8], 0
je 0x40d8dd
lea eax, [ebp - 0xc0]
mov byte [edi], 1
push eax
push 0
push edi
push 0x40d3b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434840
mov esp, ebp
pop ebp
ret 4