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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
mov dword [ebp - 4], edi
cmp dword [edi + 0x14], 0
je 0x1000b0f9
cmp dword [edi + 0x18], 0
jne 0x1000b0f9
mov ecx, dword [edi + 8]
test ecx, ecx
jne 0x1000aed1
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov dword [edi + 0x18], 1
mov eax, dword [ecx]
push esi
push dword [edi + 0x38]
call dword [eax + 8]
mov ebx, dword [edi + 0x20]
imul ebx, dword [edi + 0x24]
mov ecx, dword [edi + 0x38]
mov edx, dword [edi + 0x3c]
shl ebx, 2
mov esi, ebx
sub esi, 4
jb 0x1000af11
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000af16
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1000af00
cmp esi, 0xfffffffc
je 0x1000af4a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1000af43
cmp esi, 0xfffffffd
je 0x1000af4a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1000af43
cmp esi, 0xfffffffe
je 0x1000af4a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1000af43
cmp esi, 0xffffffff
je 0x1000af4a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1000af4a
sbb eax, eax
or eax, 1
jmp 0x1000af4c
xor eax, eax
test eax, eax
jne 0x1000af76
mov eax, dword [edi + 0x44]
lea ebx, [edi + 0x48]
test eax, eax
je 0x1000af60
dec eax
mov dword [edi + 0x44], eax
jmp 0x1000af8f
mov eax, dword [edi + 0x1c]
xor edx, edx
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
div ecx
test edx, edx
jne 0x1000b0ee
jmp 0x1000af8f
push ebx
push dword [edi + 0x38]
push dword [edi + 0x3c]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [edi + 0x44], 0x19
lea ebx, [edi + 0x48]
cmp dword [edi + 0x4c], 0
mov dword [ebp - 0x14], ebx
jne 0x1000b0ee
lea eax, [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0xc]
mov esi, dword [eax]
mov dword [ebp - 0xc], esi
cmp esi, eax
je 0x1000b0e4
nop word [eax + eax]
mov ecx, dword [esi + 8]
cmp dword [ecx + 0x68], 0
je 0x1000b0d3
cmp dword [ecx + 0x6c], 0
jne 0x1000b0d3
mov eax, dword [ecx + 0x54]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x58]
sub eax, dword [edi + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x60]
sub eax, dword [edi + 0x2c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 8], eax
lea edx, [eax + 0x8c]
mov dword [ebp - 0x20], edx
cmp dword [ecx + 0x70], ebx
jbe 0x1000b06a
mov eax, dword [ecx + 0x74]
mov edx, dword [eax + ebx*4]
mov eax, dword [ecx + 0x80]
mov eax, dword [eax + edx*4]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1000b05c
xor edx, edx
div dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov edi, eax
mov eax, dword [ebp - 8]
add edi, dword [ebp - 0x18]
imul edi, dword [edx + 0x24]
xor edx, edx
div dword [ebp - 0x10]
add edi, dword [ebp - 0x1c]
add edx, edi
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x38]
lea edx, [eax + edx*4]
mov eax, dword [ecx + 0x78]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax + ebx*4]
lea ecx, [ecx + eax*2]
add ecx, eax
mov ax, word [edx]
mov word [ecx], ax
mov al, byte [edx + 2]
mov byte [ecx + 2], al
mov ecx, dword [esi + 8]
inc ebx
cmp ebx, dword [ecx + 0x70]
jb 0x1000b004
mov eax, dword [ecx]
mov dword [ebp - 8], eax
cmp dword [eax + 0xf78], 0
je 0x1000b0d3
cmp dword [ecx + 4], 0
je 0x1000b097
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, edx
sub ecx, dword [eax + 0x12000]
cmp ecx, 0x1e
jb 0x1000b0d3
mov dword [eax + 0x12000], edx
lea esi, [eax + 0x68]
mov dword [eax + 0xf80], 1
lea edi, [eax + 0x7e0]
mov ecx, 0x1de
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1000b0cd
push ecx
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
mov dword [ebp - 0xc], esi
cmp esi, dword [edi + 0xc]
jne 0x1000afc0
mov ebx, dword [ebp - 0x14]
lea eax, [edi + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebx]
pop esi
mov dword [edi + 0x18], 0
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret