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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp dword [ebx + 0x18], 0
je 0x1000a75a
cmp dword [ebx + 0x1c], 0
jne 0x1000a75a
mov ecx, dword [ebx + 0xc]
push esi
mov dword [ebx + 0x1c], 1
push edi
mov eax, dword [ecx]
push dword [ebx + 0x3c]
call dword [eax + 8]
mov edi, dword [ebx + 0x24]
imul edi, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
shl edi, 2
mov esi, edi
sub esi, 4
jb 0x1000a5a1
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1000a5a6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1000a590
cmp esi, 0xfffffffc
je 0x1000a5eb
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1000a5d3
cmp esi, 0xfffffffd
je 0x1000a5eb
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1000a5d3
cmp esi, 0xfffffffe
je 0x1000a5eb
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1000a5d3
cmp esi, 0xffffffff
je 0x1000a5eb
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1000a5eb
push edi
push dword [ebx + 0x3c]
push dword [ebx + 0x40]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x48], 0x19
jmp 0x1000a60d
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x1000a5f8
dec eax
mov dword [ebx + 0x48], eax
jmp 0x1000a60d
mov eax, dword [ebx + 0x20]
xor edx, edx
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x4c]
div ecx
test edx, edx
jne 0x1000a74e
cmp dword [ebx + 0x50], 0
jne 0x1000a74e
lea eax, [ebx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
mov dword [ebp - 8], esi
cmp esi, eax
je 0x1000a744
mov eax, dword [esi + 8]
cmp dword [eax + 0x68], 0
je 0x1000a736
cmp dword [eax + 0x6c], 0
jne 0x1000a736
mov ecx, dword [eax + 0x54]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x58]
sub ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x60]
sub ecx, dword [ebx + 0x30]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
mov dword [ebp - 0x18], ecx
xor ecx, ecx
cmp dword [eax + 0x70], ecx
jbe 0x1000a6cd
nop dword [eax]
mov edi, dword [esi + 8]
mov eax, dword [edi + 0x74]
mov edx, dword [eax + ecx*4]
mov eax, dword [edi + 0x80]
mov eax, dword [eax + edx*4]
cmp eax, 0xffffffff
je 0x1000a6c4
xor edx, edx
mov edi, dword [ebp - 0x10]
div dword [ebp - 0xc]
add edi, eax
mov eax, dword [ebx + 0x3c]
imul edi, dword [ebx + 0x28]
add edi, edx
add edi, dword [ebp - 0x14]
lea edi, [eax + edi*4]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x78]
mov edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x18]
lea eax, [eax + edx*2]
add edx, eax
mov ax, word [edi]
mov word [edx + 0x8c], ax
mov al, byte [edi + 2]
mov byte [edx + 0x8e], al
mov eax, dword [esi + 8]
inc ecx
cmp ecx, dword [eax + 0x70]
jb 0x1000a670
mov eax, dword [esi + 8]
mov ebx, dword [eax]
cmp dword [ebx + 0xf78], 0
je 0x1000a733
cmp dword [eax + 4], 0
je 0x1000a6fa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebx + 0x53d0]
cmp ecx, 0x1e
jb 0x1000a733
mov dword [ebx + 0x53d0], eax
lea esi, [ebx + 0x68]
mov dword [ebx + 0xf80], 1
lea edi, [ebx + 0x7e0]
mov ecx, 0x1de
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
test eax, eax
je 0x1000a730
push eax
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
mov esi, dword [esi]
mov dword [ebp - 8], esi
cmp esi, dword [ebx + 0x10]
jne 0x1000a631
lea eax, [ebx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebx + 0x4c]
pop edi
mov dword [ebx + 0x1c], 0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret