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

Disassembly:
sub esp, 0x28
mov edx, dword [esp + 0x30]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov eax, esi
sub eax, edx
sar eax, 4
push edi
lea ecx, [esi - 8]
lea ebx, [edx + eax*8]
mov eax, ecx
sub eax, edx
mov dword [esp + 0x14], ebx
sar eax, 3
cmp eax, 0x28
jle 0x4c9a3c
mov ebx, dword [esp + 0x48]
inc eax
sar eax, 3
mov ebp, eax
shl ebp, 4
push ebx
lea edi, [eax*8]
lea ecx, [edi + edx]
lea eax, [edx + ebp]
push eax
push ecx
push edx
call fcn.004c9920
mov ecx, dword [esp + 0x24]
push ebx
lea eax, [edi + ecx]
push eax
push ecx
sub ecx, edi
push ecx
call fcn.004c9920
lea eax, [esi - 8]
mov esi, eax
push ebx
push eax
sub esi, edi
sub eax, ebp
push esi
push eax
call fcn.004c9920
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x78]
push ebx
lea eax, [edi + esi]
push eax
call fcn.004c9920
add esp, 0x40
jmp 0x4c9a4f
push dword [esp + 0x48]
push ecx
push ebx
push edx
call fcn.004c9920
mov esi, dword [esp + 0x50]
add esp, 0x10
mov dword [esp + 0x10], ebx
lea edi, [ebx + 8]
mov dword [esp + 0x48], edi
mov ebp, ebx
mov dword [esp + 0x18], ebp
cmp esi, ebx
jae 0x4c9ad5
mov edi, dword [esp + 0x40]
mov esi, ebx
nop word [eax + eax]
mov ecx, dword [ebx - 4]
lea eax, [ebx - 8]
cmp ecx, dword [esi + 4]
je 0x4c9a80
setl cl
jmp 0x4c9a8f
push esi
push eax
call fcn.00403c00
mov cl, al
add esp, 8
lea eax, [ebx - 8]
mov ebp, esi
mov dword [esp + 0x18], ebp
test cl, cl
jne 0x4c9acd
mov ecx, dword [esi + 4]
cmp ecx, dword [eax + 4]
je 0x4c9aa6
setl al
jmp 0x4c9ab0
push eax
push esi
call fcn.00403c00
add esp, 8
mov ebp, esi
mov dword [esp + 0x18], ebp
test al, al
jne 0x4c9acd
lea ebx, [esi - 8]
mov dword [esp + 0x10], ebx
mov ebp, ebx
mov dword [esp + 0x18], ebp
mov esi, ebx
cmp edi, ebx
jb 0x4c9a70
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x44]
cmp edi, eax
jae 0x4c9b2b
nop dword [eax]
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 4]
je 0x4c9aed
setl al
jmp 0x4c9af7
push ebp
push edi
call fcn.00403c00
add esp, 8
test al, al
jne 0x4c9b23
mov eax, dword [ebp + 4]
cmp eax, dword [edi + 4]
je 0x4c9b08
setl al
jmp 0x4c9b12
push edi
push ebp
call fcn.00403c00
add esp, 8
test al, al
mov eax, dword [esp + 0x44]
jne 0x4c9b27
add edi, 8
cmp edi, eax
jb 0x4c9ae0
jmp 0x4c9b27
mov eax, dword [esp + 0x44]
mov dword [esp + 0x48], edi
mov esi, edi
mov dword [esp + 0x1c], esi
cmp esi, eax
jae 0x4c9bf9
lea ebp, [ebx + 4]
nop dword [eax]
mov eax, dword [ebp]
cmp eax, dword [esi + 4]
je 0x4c9b4d
setl al
jmp 0x4c9b57
push esi
push ebx
call fcn.00403c00
add esp, 8
test al, al
jne 0x4c9be0
mov eax, dword [esi + 4]
cmp eax, dword [ebp]
je 0x4c9b6c
setl al
jmp 0x4c9b76
push ebx
push esi
call fcn.00403c00
add esp, 8
test al, al
jne 0x4c9bed
cmp edi, esi
je 0x4c9bd9
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edi], 0x6f6ba0
mov eax, dword [esi]
mov dword [edi], eax
mov dword [esi], 0x6f6ba0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi]
mov dword [esi], edx
mov dword [esp + 0x14], eax
mov dword [esi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x4c9bc4
cmp eax, 0xffffffff
je 0x4c9bd1
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x4c9bd1
push 4
push 2
push ecx
call fcn.004016c0
add esp, 0xc
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
add edi, 8
mov dword [esp + 0x48], edi
add esi, 8
cmp esi, dword [esp + 0x44]
jb 0x4c9b40
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x40]
cmp ebp, eax
jbe 0x4c9ccc
lea edi, [ebp - 8]
mov esi, eax
nop word [eax + eax]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 4]
je 0x4c9c1d
setl al
jmp 0x4c9c27
push ebx
push edi
call fcn.00403c00
add esp, 8
test al, al
jne 0x4c9ca8
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 4]
je 0x4c9c38
setl al
jmp 0x4c9c42
push edi
push ebx
call fcn.00403c00
add esp, 8
test al, al
jne 0x4c9cb6
add ebx, 0xfffffff8
mov dword [esp + 0x10], ebx
cmp ebx, edi
je 0x4c9ca8
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebx], 0x6f6ba0
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0x6f6ba0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [edi], edx
mov dword [esp + 0x20], eax
mov dword [edi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
test eax, eax
je 0x4c9c97
cmp eax, 0xffffffff
je 0x4c9ca4
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x4c9ca4
push 4
push 2
push ecx
call fcn.004016c0
add esp, 0xc
mov ebx, dword [esp + 0x10]
sub ebp, 8
sub edi, 8
cmp esi, ebp
jb 0x4c9c10
mov eax, dword [esp + 0x40]
cmp ebp, eax
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
jne 0x4c9dc4
cmp esi, dword [esp + 0x44]
je 0x4c9f3a
cmp edi, esi
je 0x4c9d47
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [ebx], 0x6f6ba0
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0x6f6ba0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [edi], edx
mov dword [esp + 0x24], eax
mov dword [edi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
test eax, eax
je 0x4c9d30
cmp eax, 0xffffffff
je 0x4c9d26
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
je 0x4c9d30
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
jmp 0x4c9d4b
push 4
push 2
push ecx
call fcn.004016c0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [esp + 0x48]
jmp 0x4c9d4b
mov ebx, dword [esp + 0x14]
mov edx, dword [ebx]
add edi, 8
mov ecx, dword [ebx + 4]
mov dword [ebx], 0x6f6ba0
mov eax, dword [esi]
mov dword [ebx], eax
mov dword [esi], 0x6f6ba0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov eax, dword [esi]
mov dword [esi], edx
mov dword [esp + 0x28], eax
mov dword [esi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x48], edi
test eax, eax
je 0x4c9d98
cmp eax, 0xffffffff
je 0x4c9da5
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x4c9da5
push 4
push 2
push ecx
call fcn.004016c0
add esp, 0xc
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
add ebx, 8
mov eax, dword [esp + 0x44]
add esi, 8
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
jmp 0x4c9b2d
add ebp, 0xfffffff8
mov dword [esp + 0x18], ebp
cmp esi, dword [esp + 0x44]
jne 0x4c9ec7
add ebx, 0xfffffff8
mov dword [esp + 0x10], ebx
cmp ebp, ebx
je 0x4c9e3e
mov edx, dword [ebp]
mov ecx, dword [ebp + 4]
mov dword [ebp], 0x6f6ba0
mov eax, dword [ebx]
mov dword [ebp], eax
mov dword [ebx], 0x6f6ba0
mov eax, dword [ebx + 4]
mov dword [ebp + 4], eax
mov eax, dword [ebx]
mov dword [ebx], edx
mov dword [esp + 0x2c], eax
mov dword [ebx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
test eax, eax
je 0x4c9e29
cmp eax, 0xffffffff
je 0x4c9e36
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x4c9e36
push 4
push 2
push ecx
call fcn.004016c0
add esp, 0xc
mov edi, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
mov edx, dword [ebx]
add edi, 0xfffffff8
mov ecx, dword [ebx + 4]
mov dword [ebx], 0x6f6ba0
mov dword [esp + 0x48], edi
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [edi], 0x6f6ba0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [edi], edx
mov dword [esp + 0x30], eax
mov dword [edi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x4c9ea5
cmp eax, 0xffffffff
je 0x4c9e90
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
je 0x4c9ea5
nop dword [eax + eax]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ebx
jmp 0x4c9b31
push 4
push 2
push ecx
call fcn.004016c0
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ebx
jmp 0x4c9b31
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0x6f6ba0
mov eax, dword [ebp]
mov dword [esi], eax
mov dword [ebp], 0x6f6ba0
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [ebp]
mov dword [ebp], edx
mov dword [esp + 0x34], eax
mov dword [ebp + 4], ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ebp
test eax, eax
je 0x4c9f15
cmp eax, 0xffffffff
je 0x4c9f22
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
setne al
test al, al
jne 0x4c9f22
push 4
push 2
push ecx
call fcn.004016c0
add esp, 0xc
mov ebx, dword [esp + 0x10]
add esi, 8
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ebx
jmp 0x4c9b2d
mov eax, dword [esp + 0x3c]
mov dword [eax + 4], edi
pop edi
pop esi
pop ebp
mov dword [eax], ebx
pop ebx
add esp, 0x28
ret