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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c486
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x551644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [vtable.CCriticalSection.0]
mov edx, dword [eax]
mov ecx, 0x5452ec
mov dword [ebp - 0x20], vtable.CCriticalLock.0
mov dword [ebp - 0x1c], ecx
call edx
mov dword [ebp - 0x18], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [0x552af4], ebx
jne 0x487f35
push 0x64
call fcn.004f4b27
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x487f2d
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [0x5515b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5515b0
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
jmp 0x487f2f
xor esi, esi
mov dword [0x552af4], esi
mov eax, dword [vtable.CCriticalSection.0]
mov edx, dword [eax + 4]
mov ecx, 0x5452ec
mov dword [ebp - 4], 0xffffffff
call edx
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x487f96
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x487f96
mov edx, dword [eax + 0x20]
cmp edx, ebx
je 0x487f8a
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x487f98
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x487f98
xor eax, eax
cmp byte [eax + 0xc], bl
je 0x488149
cmp byte [ebp + 8], bl
je 0x487ffa
mov ecx, 0x5537d8
call fcn.00405670
mov edx, dword [0x552ae0]
mov esi, dword [edx + 0x18]
cmp esi, ebx
jne 0x487fc1
xor eax, eax
jmp 0x487fd7
mov eax, dword [edx + 0x20]
cmp eax, ebx
je 0x487fcd
mov ecx, dword [eax + 0xc]
jmp 0x487fcf
xor ecx, ecx
mov eax, dword [edx + 0x1c]
imul eax, ecx
add eax, esi
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 0x78]
cmp ecx, edx
je 0x487ffa
mov eax, dword [eax + 0x10]
lea eax, [eax + ecx + 1]
cmp byte [eax], bl
jne 0x488149
add ecx, 3
add eax, 3
cmp ecx, edx
jne 0x487fe8
mov edx, dword [vtable.CCriticalSection.0]
mov eax, dword [edx]
mov ecx, 0x5452ec
mov dword [ebp - 0x20], vtable.CCriticalLock.0
mov dword [ebp - 0x1c], ecx
call eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 2
cmp dword [0x552af4], ebx
jne 0x48809a
push 0x64
call fcn.004f4b27
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x488092
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x5515b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5515b0
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
jmp 0x488094
xor esi, esi
mov dword [0x552af4], esi
mov edx, dword [vtable.CCriticalSection.0]
mov eax, dword [edx + 4]
mov ecx, 0x5452ec
mov dword [ebp - 4], 0xffffffff
call eax
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
jbe 0x4880fc
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x4880fc
mov edx, dword [eax + 0x20]
cmp edx, ebx
je 0x4880f0
mov eax, dword [eax + 0x1c]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x4880fe
mov eax, dword [eax + 0x1c]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x4880fe
xor eax, eax
mov edx, dword [eax + 0x14]
and edx, 3
cmp dl, 3
je 0x488149
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x24]
cmp edx, ebx
jne 0x48811d
xor eax, eax
mov dword [eax + 4], ebx
mov byte [eax + 0x20], bl
jmp 0x488174
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x488137
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x28]
imul eax, ecx
add eax, edx
mov dword [eax + 4], ebx
mov byte [eax + 0x20], bl
jmp 0x488174
mov eax, dword [esi + 0x28]
xor ecx, ecx
imul eax, ecx
add eax, edx
mov dword [eax + 4], ebx
mov byte [eax + 0x20], bl
jmp 0x488174
mov esi, dword [ebp - 0x10]
mov edx, dword [esi + 0x24]
cmp edx, ebx
jne 0x488157
xor eax, eax
jmp 0x48816d
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x488163
mov ecx, dword [eax + 0xc]
jmp 0x488165
xor ecx, ecx
mov eax, dword [esi + 0x28]
imul eax, ecx
add eax, edx
mov dword [eax + 4], 3
cmp byte [esi + 0xc], bl
je 0x488187
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
add esi, 0x14
push esi
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4