Function at 0x402632
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x430]
mov dword [ebp - 0x10], esi
call fcn.00403c6d
lea esi, [edi + 0x440]
mov dword [ebp - 0xc], esi
call fcn.00403c6d
mov eax, dword [edi + 0x3e0]
cmp eax, dword [edi + 0x3c]
mov dword [ebp - 8], eax
jge 0x40272e
jmp 0x402671
mov eax, dword [ebp - 8]
push eax
mov esi, edi
call fcn.004083ee
mov ebx, eax
mov eax, dword [ebx + 0x10]
cmp eax, 0x17
jne 0x40275b
mov eax, edi
call fcn.004025c7
cmp dword [ebx + 0x6c], 0xffffffff
jne 0x40271f
xor esi, esi
cmp dword [edi + 0x44c], esi
jle 0x4026cb
push 0x10
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebp - 0xc]
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.00402dbd
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40271f
inc esi
cmp esi, dword [edi + 0x44c]
jl 0x4026a2
mov eax, dword [ebp - 0xc]
lea esi, [ebx + 0x38]
mov ebx, dword [eax + 0xc]
test ebx, ebx
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jl 0x40271c
cmp ebx, 0xffffffff
mov esi, eax
mov eax, dword [esi + 8]
jne 0x4026f2
push dword [esi]
call sub.msvcrt.dll_free
jmp 0x402702
push eax
push 0x10
lea eax, [esi + 4]
mov edx, ebx
mov edi, esi
call fcn.00404d33
pop ecx
lea eax, [ebx + 1]
cmp dword [esi + 0xc], eax
pop ecx
jge 0x40270e
mov dword [esi + 0xc], eax
mov edi, ebx
shl edi, 4
add edi, dword [esi]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0x3c]
jl 0x40266e
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
cmp dword [edi + 0x43c], ecx
mov dword [ebp - 0x14], ecx
jle 0x4027d9
test ecx, ecx
jl 0x402780
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xc]
jge 0x402780
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 8], eax
jmp 0x402784
cmp dword [ebx + 0x38], 0
je 0x40271f
cmp eax, 2
jne 0x40271f
mov eax, edi
call fcn.004025c7
cmp dword [ebx + 0x6c], 0xffffffff
jne 0x40271f
push dword [ebx + 0x38]
push dword [ebp - 0x10]
call fcn.00402d86
jmp 0x40271f
and dword [ebp - 8], 0
call fcn.0040dd05
test eax, eax
jl 0x4027c6
mov esi, eax
lea ecx, [ebp - 0x18]
imul esi, esi, 0x1c
add esi, dword [0x41fdb8]
push ecx
push 4
push eax
push 0x40dd5f
push 0
push 0
call ebx
test eax, eax
je 0x4027c6
mov dword [esi], eax
mov ecx, dword [edi + 0x3dc]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 8]
push eax
mov dword [esi + 0xc], ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [ebp - 0x14]
inc ecx
cmp ecx, dword [edi + 0x43c]
mov dword [ebp - 0x14], ecx
jl 0x402745
and dword [ebp - 8], 0
cmp dword [edi + 0x44c], 0
jle 0x402851
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x28]
call fcn.00402dbd
call fcn.0040dd05
test eax, eax
jl 0x402843
mov esi, eax
lea ecx, [ebp - 0x18]
imul esi, esi, 0x1c
add esi, dword [0x41fdb8]
push ecx
push 4
push eax
push 0x40dd5f
push 0
push 0
call ebx
test eax, eax
je 0x402843
mov dword [esi], eax
mov ecx, dword [edi + 0x3dc]
mov dword [esi + 4], ecx
mov word [esi + 8], 0x17
lea edi, [esi + 0xc]
lea esi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edi, dword [ebp + 8]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0x44c]
jl 0x4027e6
pop edi
pop esi
pop ebx
leave
ret 4