Function at 0x4046b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
mov ebx, eax
je 0x40481b
lea esi, [edi + 0x14]
push esi
mov dword [esp + 0x24], esi
call dword [0x5303f8]
mov eax, dword [edi + 0xc]
cmp ebx, eax
je 0x4047e1
mov dword [esp + 0x10], 0
jge 0x40483a
sub eax, ebx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4047e1
mov eax, dword [edi + 0x3c]
push eax
call dword [0x5303dc]
mov esi, dword [0x5303d8]
push 1
lea ebx, [edi + 0x38]
push ebx
call esi
mov ecx, dword [edi + 0x40]
push 0xffffffffffffffff
push 0
push 0
push ecx
call dword [0x5303e4]
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push edx
push eax
call dword [0x5303d4]
cmp eax, 0x102
jne 0x404767
push 0
push ebx
call esi
test eax, eax
je 0x40476f
mov eax, 0x102
call fcn.00404f10
mov ecx, dword [esp + 0x20]
push ecx
mov esi, eax
call dword [0x5303f4]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x4047f3
mov ecx, dword [edi + 0xc]
xor esi, esi
test ecx, ecx
jle 0x4047ca
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 4]
mov edi, edi
cmp dword [eax], edx
je 0x40478e
inc esi
add eax, 4
cmp esi, ecx
jl 0x404780
jmp 0x4047ca
cmp esi, 0xffffffff
je 0x4047ca
test esi, esi
js 0x404829
cmp esi, ecx
jge 0x404829
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
push 0xea60
push ebx
call dword [0x5303d4]
test eax, eax
jne 0x404810
push ebx
call dword [0x53045c]
mov eax, esi
lea esi, [edi + 4]
call fcn.00404a70
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jl 0x4046ff
mov esi, dword [esp + 0x20]
push esi
call dword [0x5303f4]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00404ec0
mov edx, dword [esp + 0x20]
push edx
mov esi, eax
call dword [0x5303f4]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x20]
push eax
call dword [0x5303f4]
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 1
push 0xc000008c
call dword [0x5303e0]
sub ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jle 0x4047e1
mov ecx, dword [edi + 0x3c]
push ecx
call dword [0x5303dc]
mov eax, dword [edi + 0x2c]
lea edx, [esp + 0x18]
push edx
push 0
push edi
push 0x404c20
push eax
push 0
call fcn.0050a7c7
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4048c7
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push ecx
push eax
call dword [0x5303d4]
test eax, eax
jne 0x4048e0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
lea esi, [edi + 4]
push eax
mov dword [esp + 0x1c], ebx
call fcn.00404a00
test eax, eax
jne 0x4048a2
push ebx
call dword [0x53045c]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x404844
push esi
call dword [0x5303f4]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00404ec0
push esi
mov edi, eax
call dword [0x5303f4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x102
jne 0x404903
push ebx
call dword [0x53045c]
push esi
call dword [0x5303f4]
mov eax, 0x80070102
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00404ec0
push ebx
mov edi, eax
call dword [0x53045c]
push esi
call dword [0x5303f4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4