Function at 0x10062c20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b31d0
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, ebx
mov dword [esp + 0x3c], ebx
mov byte [ebx + 0x6d], 1
call fcn.100674d0
mov esi, dword [ebx + 0x30]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x2c], esi
je 0x10062c82
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
lea ecx, [esi + 0x30]
call edx
cmp esi, edi
push ecx
mov dword [esp + 0x94], edi
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], esi
je 0x10062ca0
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
lea ecx, [esi + 0x30]
call edx
push ecx
mov byte [esp + 0x98], 1
call fcn.100446c0
add esp, 4
mov ecx, eax
mov byte [esp + 0x94], 0
call fcn.10044870
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x10062cd4
lea ecx, [eax + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebx + 0x30], edi
cmp esi, edi
je 0x10062cf4
mov edi, dword [esp + 0x2c]
call fcn.1009a550
mov eax, dword [edi + 0x30]
mov edx, dword [eax + 4]
lea ecx, [edi + 0x30]
call edx
mov dword [esp + 0x2c], 0
mov esi, dword [ebx + 4]
test esi, esi
mov dword [esp + 0x28], esi
je 0x10062d09
mov eax, dword [esi + 0x30]
mov edx, dword [eax]
lea ecx, [esi + 0x30]
call edx
mov byte [esp + 0x90], 2
mov eax, dword [ebx + 4]
test eax, eax
je 0x10062d29
lea ecx, [eax + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebx + 4], 0
test esi, esi
je 0x10062d4b
mov edi, dword [esp + 0x28]
call fcn.1009a550
mov eax, dword [edi + 0x30]
mov edx, dword [eax + 4]
add edi, 0x30
mov ecx, edi
call edx
mov dword [esp + 0x28], 0
mov eax, dword [ebx + 8]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x10062d5b
push eax
call esi
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x10062d65
push eax
call esi
mov edi, dword [ebx + 0x2c]
test edi, edi
mov dword [esp + 0x24], edi
je 0x10062d7c
push 1
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov byte [esp + 0x90], 3
mov esi, dword [ebx + 0x2c]
test esi, esi
je 0x10062dac
push 0xffffffffffffffff
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x10062da5
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [ebx + 0x2c], 0
test edi, edi
je 0x10062de0
mov eax, edi
call fcn.1007d780
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x10062de0
mov edi, dword [edi + 8]
test edi, edi
je 0x10062de0
mov cl, byte [edi + 8]
test cl, cl
je 0x10062de0
mov ebx, dword [esp + 0x24]
push 0xffffffffffffffff
call fcn.1007d6e0
mov ebx, dword [esp + 0x3c]
mov edi, dword [ebx + 0x5c]
test edi, edi
mov dword [esp + 0x30], edi
je 0x10062df7
push 1
lea edx, [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov byte [esp + 0x90], 4
mov esi, dword [ebx + 0x5c]
test esi, esi
je 0x10062e27
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x10062e20
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [ebx + 0x5c], 0
test edi, edi
je 0x10062e5b
mov eax, edi
call fcn.1007d780
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x10062e5b
mov edi, dword [edi + 8]
test edi, edi
je 0x10062e5b
mov cl, byte [edi + 8]
test cl, cl
je 0x10062e5b
mov ebx, dword [esp + 0x30]
push 0xffffffffffffffff
call fcn.1007d6e0
mov ebx, dword [esp + 0x3c]
call fcn.10069250
mov dword [esp + 0x1c], eax
mov byte [eax + 0x19], 1
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], eax
mov dword [esp + 0x20], 0
lea esi, [ebx + 0x74]
test esi, esi
je 0x10062e98
mov eax, dword [esi]
test eax, eax
je 0x10062e98
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx + 0x64]
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x68]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
mov dword [ebx + 0x68], eax
mov byte [esp + 0x90], 5
je 0x10062ecd
mov esi, dword [esi]
test esi, esi
je 0x10062ecd
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x1c]
mov esi, dword [edx]
lea edi, [esp + 0x18]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
nop
test edi, edi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
je 0x10062ef4
lea ecx, [esp + 0x18]
cmp edi, ecx
je 0x10062efa
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x40]
je 0x10062fb9
test edi, edi
jne 0x10062f0e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x10062f19
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10062f2e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x14], 0
cmp esi, dword [edi + 4]
jne 0x10062f39
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edi, dword [esi + 0x10]
test edi, edi
mov dword [esp + 0x60], edi
je 0x10062f4c
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov byte [esp + 0x90], 8
mov ecx, dword [esp + 0x34]
cmp esi, dword [ecx + 4]
jne 0x10062f63
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10062f78
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [esi + 0x10], 0
test edi, edi
je 0x10062f8e
mov esi, edi
call fcn.1006b130
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
xor edi, edi
test edi, edi
mov byte [esp + 0x90], 5
je 0x10062fa3
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea esi, [esp + 0x34]
call fcn.10068e70
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
jmp 0x10062ee0
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x10062fce
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov dword [ebx + 0x78], 0
cmp byte [ebx + 0x7e], 0
mov eax, dword [ebx + 0x80]
mov dword [ebx + 0x80], 0
je 0x100630c9
test eax, eax
je 0x100630c9
push eax
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x10063018
push 0x9c4
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x100b6894
lea esi, [esp + 0x4c]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
call fcn.10002660
mov byte [esp + 0x90], 9
mov ecx, dword [ebx + 0x80]
push ecx
mov edx, esi
push edx
lea eax, [esp + 0x6c]
push eax
call fcn.1008c840
add esp, 0xc
mov ebx, 8
mov byte [esp + 0x90], 0xb
cmp dword [esp + 0x5c], ebx
jb 0x10063077
mov ecx, dword [esp + 0x48]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x78], edi
mov esi, 7
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], edi
mov word [esp + 0x48], di
je 0x100630a9
lea edx, [esp + 0x64]
push edx
call fcn.10080210
lea eax, [esp + 0x68]
add esp, 4
push eax
call fcn.1007fe50
add esp, 4
cmp dword [esp + 0x7c], ebx
jb 0x100630bc
mov ecx, dword [esp + 0x68]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edi
mov word [esp + 0x68], di
lea eax, [esp + 0x18]
mov byte [esp + 0x90], 4
call fcn.10068d60
mov byte [esp + 0x90], 3
mov esi, dword [esp + 0x30]
test esi, esi
je 0x10063104
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x10063104
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x90], 2
mov esi, dword [esp + 0x24]
test esi, esi
je 0x1006312e
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x1006312e
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0x90], 0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10063149
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x90], 0xffffffff
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10063167
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100a4489
mov esp, ebp
pop ebp
ret