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

Disassembly:
push 0xffffffffffffffff
push 0x4aa4b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3a40]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [esp + 0x1c], esi
call fcn.007f9145
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x7d9c41
push 0x80004005
call fcn.00792ac8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], esi
mov byte [ecx], 1
mov ecx, dword [edi + 0x74]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x7d9e66
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x7d9e66
xor ebx, ebx
lea ebp, [esi*4]
mov ecx, dword [edi + 0x74]
test ecx, ecx
mov dword [esp + 0x18], ebx
je 0x7d9c9b
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x7d9ca0
call fcn.0081e954
mov edx, dword [edi + 0x74]
mov eax, dword [edx + ebp]
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
je 0x7d9d10
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jae 0x7d9d10
mov ecx, edx
test ecx, ecx
je 0x7d9cce
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x7d9cd3
call fcn.0081e954
mov eax, dword [edi + 0x74]
mov esi, dword [eax + ebp]
mov ecx, dword [esi + 0xc]
add eax, ebp
add esi, 8
test ecx, ecx
je 0x7d9cf1
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x7d9cf6
call fcn.0081e954
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esp + 0x34]
cmp dword [ecx], edx
je 0x7d9d18
mov esi, dword [esp + 0x14]
add ebx, 1
jmp 0x7d9c84
add esi, 1
jmp 0x7d9c5c
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x7d9d2d
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x7d9d32
call fcn.0081e954
mov ebp, dword [esp + 0x14]
mov eax, dword [edi + 0x74]
add ebp, ebp
add ebp, ebp
mov esi, dword [eax + ebp]
mov ecx, dword [esi + 0xc]
add eax, ebp
add esi, 8
test ecx, ecx
je 0x7d9d58
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x7d9d5d
call fcn.0081e954
mov eax, dword [esi + 4]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebx + eax]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x38]
jne 0x7d9d80
mov edx, dword [eax + 0xc]
cmp edx, dword [esp + 0x3c]
jne 0x7d9d80
mov eax, dword [esp + 0x40]
mov byte [eax], 0
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x7d9d95
mov eax, dword [edi + 0x78]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x7d9d9a
call fcn.0081e954
mov edi, dword [edi + 0x74]
mov esi, dword [edi + ebp]
mov ecx, dword [esi + 0xc]
add edi, ebp
add esi, 8
test ecx, ecx
je 0x7d9dba
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x7d9dbf
call fcn.0081e954
mov esi, dword [esi + 4]
add esi, ebx
mov esi, dword [esi]
add esi, 0x10
mov esi, dword [esi]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub esi, 0x10
call eax
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x7d9df2
cmp eax, dword [esi]
jne 0x7d9df2
mov edi, esi
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x7d9e2e
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x7d9e0b
call fcn.00792ab8
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0081ea5a
add esp, 0x10
mov esi, dword [esp + 0x30]
mov dword [esp + 0x28], reloc.MSVCRT.dll_strncpy
mov eax, dword [esp + 0x1c]
add edi, 0x10
add eax, 0xfffffff0
mov dword [esi], edi
lea ecx, [eax + 0xc]
or edx, reloc.MSVCRT.dll_strncpy
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x7d9e5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x7d9ef9
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x7d9e91
cmp eax, dword [esi]
jne 0x7d9e91
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x7d9ecd
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x7d9eaa
call fcn.00792ab8
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esi + 0x10]
push edx
lea eax, [eax + eax + 2]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.0081ea5a
add esp, 0x10
lea edx, [edi + 0x10]
mov edi, dword [esp + 0x30]
mov dword [edi], edx
mov dword [esp + 0x28], reloc.MSVCRT.dll_strncpy
lea eax, [esi + 0xc]
or ecx, reloc.MSVCRT.dll_strncpy
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x7d9ef7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x14