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

Disassembly:
push 0xffffffffffffffff
push 0x1008d67c
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
push 4
movq qword [esp + 0x28], xmm0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], 0
test eax, eax
je 0x10051436
mov dword [eax], 0
mov dword [eax], 0
jmp 0x10051438
xor eax, eax
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.10052970
mov dword [esp + 0x3c], 1
mov esi, dword [esp + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x10051483
push eax
push ecx
call fcn.1004fc00
add esp, 4
mov ecx, eax
call fcn.100500e0
mov dword [esi], 0
call fcn.1004fc00
mov ecx, eax
call fcn.1004ffb0
or ebp, 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x10051534
mov ecx, dword [edi]
lea eax, [esp + 0x24]
push eax
add ecx, 0x30
call fcn.100121d0
mov ecx, dword [edi]
sub esp, 8
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x1c], esp
mov eax, dword [esi + 0x60]
mov dword [ecx + 0x3c], eax
mov ecx, esp
push edi
call fcn.10012160
mov byte [esp + 0x44], 2
push esi
mov byte [esp + 0x48], 1
mov ecx, edi
call fcn.10051650
test al, al
jne 0x1005158b
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x3c], 3
lea eax, [esp + 0x18]
mov ecx, dword [edi]
push eax
add ecx, 0x30
call fcn.10035960
mov byte [esp + 0x3c], 1
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10051534
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x10051534
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
mov edx, ebp
lock xadd dword [eax], edx
jne 0x10051534
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
xor bl, bl
mov dword [esp + 0x3c], 0xffffffff
mov esi, dword [esp + 0x28]
test esi, esi
je 0x10051568
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x10051568
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea edx, [esi + 8]
lock xadd dword [edx], ebp
dec ebp
jne 0x10051568
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.10081b94
add esp, 0x2c
ret 4
mov eax, dword [edi]
lea ecx, [esp + 0x20]
sub eax, 0xffffff80
mov dword [esp + 0x20], 0
push eax
call fcn.100050b0
mov byte [esp + 0x3c], 4
mov eax, dword [edi]
cmp byte [eax + 0x38], 0
je 0x100515ce
mov ecx, dword [edi]
lea ecx, [ecx + 0x30]
call fcn.10012270
xor bl, bl
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x20]
call fcn.100050e0
jmp 0x10051536
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100515eb
mov eax, dword [eax]
test eax, eax
je 0x100515e3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x24]
xor bl, bl
mov dword [esp + 0x14], 2
push dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.1004fc00
mov ecx, eax
call fcn.10050040
mov ecx, dword [esp + 0x14]
test al, al
je 0x10051621
test ecx, ecx
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov eax, dword [edi]
mov dword [eax + 0x78], ecx
mov ecx, dword [edi]
lea ecx, [ecx + 0x30]
call fcn.10012270
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x20]
call fcn.100050e0
jmp 0x10051536