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

Disassembly:
mov eax, dword [0x10070c2c]
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
test eax, eax
je 0x10005bac
mov ecx, dword [0x10070c28]
add eax, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x48], eax
cmp ecx, eax
je 0x10005bac
mov esi, dword [0x10070d5c]
mov eax, dword [0x10070c24]
mov edx, ecx
dec eax
shr edx, 1
and edx, eax
and ecx, 1
mov eax, dword [0x10070c20]
mov eax, dword [eax + edx*4]
mov edx, dword [0x10070d54]
lea ebx, [eax + ecx*8]
mov ecx, dword [0x10070d58]
mov dword [esp + 0x28], ebx
lea eax, [ecx + esi]
test al, 1
jne 0x10005949
lea eax, [esi + 2]
shr eax, 1
cmp edx, eax
ja 0x10005949
push ecx
mov ecx, 0x10070d4c
call fcn.10003290
mov esi, dword [0x10070d5c]
mov ecx, dword [0x10070d58]
mov edx, dword [0x10070d54]
lea eax, [edx*2 - 1]
and ecx, eax
lea eax, [edx - 1]
add esi, ecx
mov dword [0x10070d58], ecx
mov ecx, esi
shr ecx, 1
and ecx, eax
mov eax, dword [0x10070d50]
lea edi, [ecx*4]
cmp dword [edi + eax], 0
jne 0x1000598d
push 0x10
call fcn.10041382
mov ecx, dword [0x10070d50]
add esp, 4
mov dword [edi + ecx], eax
mov eax, dword [0x10070d50]
mov eax, dword [edi + eax]
and esi, 1
mov dword [eax + esi*8], 0
mov dword [eax + esi*8 + 4], 0
lea ecx, [eax + esi*8]
mov eax, dword [ebx + 4]
test eax, eax
je 0x100059b0
lock inc dword [eax + 4]
mov eax, dword [ebx]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov esi, dword [0x10070d5c]
inc esi
mov dword [0x10070d5c], esi
mov ebx, dword [ebx]
mov dword [esp + 0x40], ebx
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x10005b99
mov ecx, dword [ebx + 0x78]
add eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], eax
cmp ecx, eax
je 0x10005b99
mov esi, dword [0x10070d48]
mov eax, dword [ebx + 0x74]
mov edx, ecx
dec eax
shr edx, 1
and edx, eax
and ecx, 1
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + edx*4]
lea eax, [eax + ecx*8]
mov ecx, dword [eax]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ecx
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x10005b80
mov ebp, dword [ecx + 0x30]
add eax, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], eax
cmp ebp, eax
je 0x10005b80
mov eax, dword [ecx + 0x2c]
mov edx, ebp
dec eax
shr edx, 1
and edx, eax
mov eax, dword [ecx + 0x28]
mov ecx, ebp
and ecx, 1
mov eax, dword [eax + edx*4]
mov edi, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x54]
test eax, eax
je 0x10005b69
mov edi, dword [edi + 0x50]
add eax, edi
mov dword [esp + 0x34], eax
cmp edi, eax
je 0x10005b69
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 0x4c]
mov edx, edi
dec eax
shr edx, 1
and edx, eax
mov ecx, edi
mov eax, dword [ebp + 0x48]
and ecx, 1
mov eax, dword [eax + edx*4]
lea ebx, [eax + ecx*8]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x10070d40]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
add eax, 8
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
add eax, 8
mov dword [esp + 0x10], eax
lea eax, [esi + 1]
cmp ecx, eax
ja 0x10005ad1
push ecx
call fcn.1000d710
mov esi, dword [0x10070d48]
mov ecx, dword [0x10070d40]
mov eax, dword [0x10070d44]
dec ecx
and eax, ecx
mov dword [0x10070d44], eax
add eax, esi
and eax, ecx
lea esi, [eax*4]
mov eax, dword [0x10070d3c]
cmp dword [esi + eax], 0
jne 0x10005b0c
push 0x14
call fcn.10041382
mov ecx, dword [0x10070d3c]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [0x10070d3c]
mov eax, dword [esi + eax]
mov dword [eax], 0
mov dword [eax + 4], 0
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x10005b27
lock inc dword [ecx + 4]
mov ecx, dword [ebx]
inc edi
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 8]
mov dword [eax + 0x10], ecx
mov esi, dword [0x10070d48]
inc esi
mov dword [0x10070d48], esi
cmp edi, dword [esp + 0x34]
jne 0x10005a76
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
inc ebp
mov dword [esp + 0x14], ebp
cmp ebp, dword [esp + 0x38]
jne 0x10005a33
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x44]
jne 0x100059f3
mov esi, dword [0x10070d5c]
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x48]
jne 0x100058f2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret