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

Disassembly:
push 0xffffffffffffffff
push 0x100b40ec
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x100d3020]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3020]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x15c]
lea eax, [ebp + 0x74]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], eax
je 0x10063230
mov eax, dword [eax]
cmp eax, ebx
je 0x10063230
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x154], ebx
mov edi, dword [ebp + 0x30]
cmp edi, ebx
mov dword [esp + 0x2c], edi
je 0x1006324c
mov eax, dword [edi + 0x30]
mov edx, dword [eax]
lea ecx, [edi + 0x30]
call edx
mov byte [esp + 0x154], 1
mov eax, dword [ebp + 0x30]
cmp eax, ebx
je 0x10063268
lea ecx, [eax + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp + 0x30], ebx
cmp edi, ebx
je 0x10063271
call fcn.1009a550
mov edi, dword [ebp + 4]
cmp edi, ebx
mov dword [esp + 0x30], edi
je 0x10063286
mov eax, dword [edi + 0x30]
mov edx, dword [eax]
lea ecx, [edi + 0x30]
call edx
mov byte [esp + 0x154], 2
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x100632a2
lea ecx, [eax + 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [ebp + 4], ebx
cmp edi, ebx
je 0x100632ab
call fcn.1009a550
mov eax, dword [ebp + 8]
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetEvent]
je 0x100632bb
push eax
call esi
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x100632c5
push eax
call esi
mov edi, dword [ebp + 0x2c]
cmp edi, ebx
mov dword [esp + 0x24], edi
je 0x100632dc
push 1
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov byte [esp + 0x154], 3
mov esi, dword [ebp + 0x2c]
cmp esi, ebx
je 0x10063308
push 0xffffffffffffffff
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x10063305
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [ebp + 0x2c], ebx
cmp edi, ebx
je 0x1006333a
mov eax, edi
call fcn.1007d780
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x1006333a
mov edi, dword [edi + 8]
cmp edi, ebx
je 0x1006333a
mov cl, byte [edi + 8]
test cl, cl
je 0x1006333a
mov ebx, dword [esp + 0x24]
push 0xffffffffffffffff
call fcn.1007d6e0
xor ebx, ebx
mov edi, dword [ebp + 0x5c]
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x10063351
push 1
lea edx, [edi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov byte [esp + 0x154], 4
mov esi, dword [ebp + 0x5c]
cmp esi, ebx
je 0x1006337d
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x1006337a
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov dword [ebp + 0x5c], ebx
cmp edi, ebx
je 0x100633af
mov eax, edi
call fcn.1007d780
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x100633af
mov edi, dword [edi + 8]
cmp edi, ebx
je 0x100633af
mov cl, byte [edi + 8]
test cl, cl
je 0x100633af
mov ebx, dword [esp + 0x1c]
push 0xffffffffffffffff
call fcn.1007d6e0
xor ebx, ebx
cmp byte [ebp + 0x7e], bl
mov edi, dword [ebp + 0x80]
je 0x1006348c
cmp edi, ebx
je 0x1006348c
push ebx
push 0x100b6894
lea esi, [esp + 0x78]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
call fcn.10002660
push edi
mov edx, esi
push edx
lea eax, [esp + 0xa0]
push eax
mov byte [esp + 0x160], 5
call fcn.1008c840
add esp, 0xc
mov esi, 8
mov byte [esp + 0x154], 7
cmp dword [esp + 0x88], esi
jb 0x1006342b
mov ecx, dword [esp + 0x74]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [esp + 0xac], ebx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], bx
je 0x1006346b
lea edx, [esp + 0x98]
push edx
call fcn.10080210
lea eax, [esp + 0x9c]
add esp, 4
push eax
call fcn.1007fe50
add esp, 4
mov byte [esp + 0x154], 4
cmp dword [esp + 0xb0], esi
jb 0x1006348c
mov ecx, dword [esp + 0x9c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push ecx
mov ecx, dword [ebp + 0x78]
cmp ecx, ebx
mov eax, esp
mov dword [esp + 0x30], esp
mov dword [eax], ecx
je 0x100634a4
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
mov ecx, dword [ebp + 0x70]
push ecx
push ebp
call fcn.10061450
cmp al, bl
jne 0x1006355b
mov byte [esp + 0x154], 3
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x100634e0
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x100634e0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x154], 2
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x1006350a
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x1006350a
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0x154], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10063525
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1006353f
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x10063554
mov eax, dword [eax]
cmp eax, ebx
je 0x10063554
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x10063960
mov eax, dword [ebp + 0x64]
mov esi, dword [eax]
lea edi, [ebp + 0x60]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
jmp 0x10063570
mov ecx, dword [ebp + 0x64]
add ebp, 0x60
cmp edi, ebx
mov dword [esp + 0x94], ecx
je 0x10063585
cmp edi, ebp
je 0x1006358b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [esp + 0x94]
je 0x100638be
cmp edi, ebx
jne 0x100635a2
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
jne 0x100635ad
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, dword [edi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x20], edx
jne 0x100635bf
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
mov dword [esp + 0x3c], ecx
je 0x100635d4
mov eax, dword [ecx]
mov edx, dword [eax]
call edx
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x154], 8
mov eax, dword [esi + 0x14]
cmp eax, ebx
mov dword [esp + 0x40], eax
je 0x100635f3
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
mov ebp, ecx
mov byte [esp + 0x154], 9
mov dword [esp + 0x8c], ebp
je 0x1006360e
mov edx, dword [ecx]
mov eax, dword [edx]
call eax
cmp ebp, ebx
mov byte [esp + 0x154], 0xa
je 0x10063892
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov edx, dword [ebp]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x4c]
push eax
mov ecx, ebp
call edx
mov eax, 7
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], bx
mov dword [esp + 0xd8], ebx
mov byte [esp + 0xdc], bl
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x11c], 0xf
mov dword [esp + 0x118], ebx
mov byte [esp + 0x108], bl
mov dword [esp + 0x138], eax
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], bx
mov byte [esp + 0x13c], bl
mov eax, dword [esp + 0x20]
mov byte [esp + 0x154], 0xb
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], ecx
mov dword [esp + 0xf0], edx
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
mov dword [esp + 0xd8], eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x48]
mov ecx, ebp
call eax
mov dword [esp + 0xe4], eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x4c]
mov ecx, ebp
call eax
mov edi, dword [esp + 0x38]
push 1
lea ecx, [esp + 0xb8]
lea esi, [esp + 0x1c]
mov dword [esp + 0xec], eax
call fcn.10063f40
mov byte [esp + 0x154], 0xc
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x10063861
mov eax, dword [ecx]
mov edx, dword [eax + 0x4c]
mov edi, ecx
mov esi, ecx
mov dword [esp + 0x28], eax
call edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x48]
mov ecx, esi
call edx
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x44]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x60]
push edx
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x60]
push eax
call edx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
lea ebx, [esp + 0x5c]
call fcn.1006b1c0
mov bl, 0xd
mov byte [esp + 0x154], bl
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x100637ed
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
mov edx, dword [eax + 0xa8]
push ecx
mov ecx, esi
call edx
test edi, edi
je 0x10063846
mov eax, dword [ebp]
mov edx, dword [eax + 0xf0]
mov ecx, ebp
call edx
push eax
mov eax, dword [ebp]
mov edx, dword [eax + 0xf4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push ecx
mov ecx, ebp
call edx
sub esp, 0x1c
mov byte [esp + 0x190], 0xe
mov eax, dword [ebp]
mov edx, dword [eax + 0x54]
mov ecx, esp
mov dword [esp + 0x5c], esp
push ecx
mov ecx, ebp
call edx
mov eax, dword [edi]
add eax, 0x114
mov eax, dword [eax]
mov ecx, edi
mov byte [esp + 0x190], bl
call eax
test esi, esi
mov byte [esp + 0x154], 0xc
je 0x1006385b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x18]
xor ebx, ebx
cmp ecx, ebx
mov byte [esp + 0x154], 0xb
je 0x10063874
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0xb4]
call fcn.10058910
mov byte [esp + 0x154], 9
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x158], 4
call fcn.100639f0
lea esi, [esp + 0x44]
call fcn.10068e70
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
jmp 0x10063570
mov byte [esp + 0x154], 3
cmp dword [esp + 0x1c], ebx
je 0x100638ea
mov esi, dword [esp + 0x1c]
push 0xffffffffffffffff
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x100638ea
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov byte [esp + 0x154], 2
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x10063914
push 0xffffffffffffffff
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub eax, 1
jne 0x10063914
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
mov byte [esp + 0x154], 1
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x1006392f
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x10063949
mov edx, dword [eax + 0x30]
lea ecx, [eax + 0x30]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x1006395e
mov eax, dword [eax]
cmp eax, ebx
je 0x1006395e
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.100a4489
add esp, 0x144
ret 4