Function at 0x4f892c
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 0x4f8a97
lea esi, [edi + 0x14]
push esi
mov dword [esp + 0x24], esi
call dword [0x101711ac]
mov eax, dword [edi + 0xc]
cmp ebx, eax
je 0x4f8a5d
mov dword [esp + 0x10], 0
jge 0x4f8ab6
sub eax, ebx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4f8a5d
mov eax, dword [edi + 0x3c]
push eax
call dword [0x1017108c]
mov esi, dword [0x10171090]
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 [0x10171094]
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push edx
push eax
call dword [0x10171188]
cmp eax, 0x102
jne 0x4f89e3
push 0
push ebx
call esi
test eax, eax
je 0x4f89eb
mov eax, 0x102
call fcn.004fc2cc
mov ecx, dword [esp + 0x20]
push ecx
mov esi, eax
call dword [0x101711a8]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x4f8a6f
mov ecx, dword [edi + 0xc]
xor esi, esi
test ecx, ecx
jle 0x4f8a46
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 4]
mov edi, edi
cmp dword [eax], edx
je 0x4f8a0a
inc esi
add eax, 4
cmp esi, ecx
jl 0x4f89fc
jmp 0x4f8a46
cmp esi, 0xffffffff
je 0x4f8a46
test esi, esi
js 0x4f8aa5
cmp esi, ecx
jge 0x4f8aa5
mov eax, dword [edi + 8]
mov ebx, dword [eax + esi*4]
push 0xea60
push ebx
call dword [0x10171188]
test eax, eax
jne 0x4f8a8c
push ebx
call dword [0x1017118c]
mov eax, esi
lea esi, [edi + 4]
call fcn.004f953c
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jl 0x4f897b
mov esi, dword [esp + 0x20]
push esi
call dword [0x101711a8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004fc2dc
mov edx, dword [esp + 0x20]
push edx
mov esi, eax
call dword [0x101711a8]
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 [0x101711a8]
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 [0x10171098]
sub ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jle 0x4f8a5d
mov ecx, dword [edi + 0x3c]
push ecx
call dword [0x1017108c]
mov eax, dword [edi + 0x2c]
lea edx, [esp + 0x18]
push edx
push 0
push edi
push 0x1001a5f0
push eax
push 0
call fcn.006351fe
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4f8b43
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
push ecx
push eax
call dword [0x10171188]
test eax, eax
jne 0x4f8b5c
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
lea esi, [edi + 4]
push eax
mov dword [esp + 0x1c], ebx
call fcn.004f94cc
test eax, eax
jne 0x4f8b1e
push ebx
call dword [0x1017118c]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x1c]
jl 0x4f8ac0
push esi
call dword [0x101711a8]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004fc2dc
push esi
mov edi, eax
call dword [0x101711a8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x102
jne 0x4f8b7f
push ebx
call dword [0x1017118c]
push esi
call dword [0x101711a8]
mov eax, 0x80070102
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004fc2dc
push ebx
mov edi, eax
call dword [0x1017118c]
push esi
call dword [0x101711a8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4