Function at 0x402620
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.00406f03
lea esi, [edi + 0x440]
mov dword [ebp - 0xc], esi
call fcn.00406f03
mov eax, dword [edi + 0x3e0]
cmp eax, dword [edi + 0x3c]
mov dword [ebp - 8], eax
jge 0x40271c
jmp 0x40265f
mov eax, dword [ebp - 8]
push eax
mov esi, edi
call fcn.004083dc
mov ebx, eax
mov eax, dword [ebx + 0x10]
cmp eax, 0x17
jne 0x402749
mov eax, edi
call fcn.004025b5
cmp dword [ebx + 0x6c], 0xffffffff
jne 0x40270d
xor esi, esi
cmp dword [edi + 0x44c], esi
jle 0x4026b9
push 0x10
lea eax, [ebx + 0x38]
push eax
mov eax, dword [ebp - 0xc]
mov edx, esi
lea ecx, [ebp - 0x38]
call fcn.00402daa
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x40270d
inc esi
cmp esi, dword [edi + 0x44c]
jl 0x402690
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 0x40270a
cmp ebx, 0xffffffff
mov esi, eax
mov eax, dword [esi + 8]
jne 0x4026e0
push dword [esi]
call sub.msvcrt.dll_free
jmp 0x4026f0
push eax
push 0x10
lea eax, [esi + 4]
mov edx, ebx
mov edi, esi
call fcn.00404d07
pop ecx
lea eax, [ebx + 1]
cmp dword [esi + 0xc], eax
pop ecx
jge 0x4026fc
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 0x40265c
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
xor ecx, ecx
cmp dword [edi + 0x43c], ecx
mov dword [ebp - 0x14], ecx
jle 0x4027c7
test ecx, ecx
jl 0x40276e
mov eax, dword [ebp - 0x10]
cmp ecx, dword [eax + 0xc]
jge 0x40276e
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 8], eax
jmp 0x402772
cmp dword [ebx + 0x38], 0
je 0x40270d
cmp eax, 2
jne 0x40270d
mov eax, edi
call fcn.004025b5
cmp dword [ebx + 0x6c], 0xffffffff
jne 0x40270d
push dword [ebx + 0x38]
push dword [ebp - 0x10]
call fcn.00402d73
jmp 0x40270d
and dword [ebp - 8], 0
call fcn.0040dcd7
test eax, eax
jl 0x4027b4
mov esi, eax
lea ecx, [ebp - 0x18]
imul esi, esi, 0x1c
add esi, dword [0x41fdb8]
push ecx
push 4
push eax
push 0x40dd31
push 0
push 0
call ebx
test eax, eax
je 0x4027b4
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 0x402733
and dword [ebp - 8], 0
cmp dword [edi + 0x44c], 0
jle 0x40283f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x28]
call fcn.00402daa
call fcn.0040dcd7
test eax, eax
jl 0x402831
mov esi, eax
lea ecx, [ebp - 0x18]
imul esi, esi, 0x1c
add esi, dword [0x41fdb8]
push ecx
push 4
push eax
push 0x40dd31
push 0
push 0
call ebx
test eax, eax
je 0x402831
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 0x4027d4
pop edi
pop esi
pop ebx
leave
ret 4