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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100b518e
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, ecx
mov al, byte [edi + 0x7c]
test al, al
mov dword [esp + 0x10], edi
jne 0x10014712
mov eax, dword [edi + 0x34]
xor ebx, ebx
cmp eax, ebx
je 0x10014253
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov cl, byte [edi + 0x7c]
test cl, cl
jne 0x10014714
lea esi, [edi + 0x2c]
cmp esi, ebx
mov dword [esp + 0x44], esi
je 0x10014276
mov eax, dword [esi]
cmp eax, ebx
je 0x10014276
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x118], ebx
mov eax, dword [edi + 0x34]
cmp eax, ebx
je 0x1001428b
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp esi, ebx
mov byte [esp + 0x118], 1
mov eax, dword [edi + 0x10]
mov dword [edi + 0x10], ebx
mov edx, dword [edi + 0x14]
mov dword [edi + 0x14], ebx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov dword [edi + 0x18], ebx
je 0x100142ce
mov esi, dword [esi]
cmp esi, ebx
je 0x100142ca
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x2c], esi
je 0x100146e4
mov ecx, edx
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x100146db
cmp eax, ebx
mov edi, dword [eax + esi*4]
mov dword [esp + 0x4c], edi
je 0x100142ff
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x10014309
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov dword [eax + esi*4], ebx
mov al, byte [edx + 0x7c]
test al, al
jne 0x100146b4
mov ecx, dword [edi]
cmp ecx, ebx
mov dword [esp + 0x48], ecx
je 0x1001432b
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov byte [esp + 0x118], 3
push 0xffffffffffffffff
mov esi, 7
lea eax, [edi + 4]
push ebx
lea ecx, [esp + 0x64]
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
call fcn.10002570
mov byte [esp + 0x118], 4
push 0xffffffffffffffff
lea eax, [edi + 0x20]
push ebx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
call fcn.10002570
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
lea ecx, [esp + 0xe8]
push ecx
mov byte [esp + 0x11c], 6
call fcn.1008a130
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xec]
mov byte [esp + 0x11c], 7
call fcn.1008a2b0
mov ecx, dword [edi + 0x3c]
cmp ecx, ebx
mov eax, dword [edi + 0x40]
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
je 0x100143dd
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov dword [esp + 0x18], 1
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
sub esp, 0x1c
mov byte [esp + 0x134], 9
mov ecx, esp
mov dword [esp + 0x74], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x9c]
lea edi, [esp + 0xd4]
mov word [ecx + 4], bx
call fcn.10002570
sub esp, 0x1c
mov byte [esp + 0x150], 0xa
mov ecx, esp
mov dword [esp + 0x8c], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0x10c]
mov word [ecx + 4], bx
call fcn.10002570
sub esp, 0x1c
mov byte [esp + 0x16c], 0xb
mov ecx, esp
mov dword [esp + 0xa4], esp
push 0xffffffffffffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push ebx
lea eax, [esp + 0xb8]
mov word [ecx + 4], bx
call fcn.10002570
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x64]
push ecx
push edx
mov ecx, edi
mov byte [esp + 0x174], 9
call fcn.100136d0
cmp al, bl
je 0x100144aa
xor eax, eax
jmp 0x100144ae
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + 0x7c]
test dl, dl
mov edi, dword [esp + 0x14]
jne 0x100145be
cmp edi, ebx
je 0x100145be
cmp eax, ebx
jne 0x100145be
mov eax, dword [edi]
push ebx
lea ecx, [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x64]
push edx
mov edx, dword [eax + 0x10]
push ecx
mov ecx, edi
call edx
mov edi, dword [esp + 0x10]
add edi, 0xa0
cmp edi, ebx
mov dword [esp + 0x50], edi
je 0x10014509
mov eax, dword [edi]
cmp eax, ebx
je 0x10014509
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x118], 0xc
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xb8]
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
call fcn.10002570
lea ebx, [esp + 0x94]
mov byte [esp + 0x118], 0xd
call fcn.1007f380
mov eax, dword [esp + 0x10]
add eax, 0x94
push eax
mov ecx, ebx
call fcn.10015dc0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
cmp dword [esp + 0xac], 8
jb 0x10014586
mov ecx, dword [esp + 0x98]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp edi, eax
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], eax
mov word [esp + 0x98], ax
je 0x100145b3
mov edi, dword [edi]
test edi, edi
je 0x100145b3
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x14]
mov esi, 7
xor ebx, ebx
cmp dword [esp + 0xc8], 8
jb 0x100145d8
mov edx, dword [esp + 0xb4]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebx
mov dword [esp + 0xc8], esi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
mov byte [esp + 0x118], 7
je 0x10014603
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [esp + 0xe8]
push eax
mov byte [esp + 0x11c], 6
call fcn.1008a200
mov edi, 8
cmp dword [esp + 0x90], edi
jb 0x10014633
mov ecx, dword [esp + 0x7c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0xe4], edi
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
jb 0x1001465f
mov edx, dword [esp + 0xd0]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0x74], edi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], bx
jb 0x10014688
mov eax, dword [esp + 0x60]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov byte [esp + 0x118], 1
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
je 0x100146ac
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
cmp edi, ebx
je 0x100146c7
push edi
call fcn.10014860
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
add esi, 1
jmp 0x100142d0
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x10014705
mov eax, dword [eax]
cmp eax, ebx
je 0x10014705
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [edi + 0x7c]
test cl, cl
je 0x10014241
jmp 0x10014714
xor ebx, ebx
lea esi, [edi + 0x2c]
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x1001472c
mov eax, dword [esi]
cmp eax, ebx
je 0x1001472c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, ebx
mov dword [esp + 0x118], 0xf
mov edx, dword [edi + 0x10]
mov dword [edi + 0x10], ebx
mov ecx, dword [edi + 0x14]
mov dword [edi + 0x14], ebx
mov eax, dword [edi + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [edi + 0x18], ebx
je 0x10014772
mov esi, dword [esi]
cmp esi, ebx
je 0x1001476e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], ebx
xor esi, esi
cmp edx, ebx
je 0x100147a6
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jae 0x100147a6
mov edi, dword [edx + esi*4]
cmp edi, ebx
je 0x100147a1
push edi
call fcn.10014860
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 4
add esi, 1
jmp 0x10014774
cmp edx, ecx
mov edi, ecx
mov dword [esp + 0x30], edi
jbe 0x100147be
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp edx, ecx
mov esi, edx
jbe 0x100147d2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp esi, edi
je 0x10014802
sub ecx, edi
sar ecx, 2
cmp ecx, ebx
lea eax, [ecx*4]
lea edi, [esi + eax]
jle 0x100147fe
mov ecx, dword [esp + 0x30]
push eax
push ecx
push eax
push esi
call dword [sym.imp.MSVCR80.dll_memmove_s]
mov edx, dword [esp + 0x30]
add esp, 0x10
mov dword [esp + 0x24], edi
cmp edx, ebx
je 0x1001480f
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x10014830
mov eax, dword [eax]
cmp eax, ebx
je 0x10014830
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.100a4489
mov esp, ebp
pop ebp
ret