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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x90
mov esi, esp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x7c], esp
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x84], 0x449110
mov edi, dword [ebp + 8]
lea eax, [esi + 0x80]
mov ecx, dword fs:[0]
mov dword [esi + 0x80], ecx
mov dword fs:[0], eax
imul ecx, edi, 0x9e3779b9
cmp dword [ebp + 0x14], 0x3b9aca00
movzx eax, byte [edi]
mov dword [esi + 0x34], ecx
setne byte [esi + 0x1b]
xor ecx, ecx
jmp 0x51c98f
mov edx, eax
or dl, 1
lock cmpxchg byte [edi], dl
je 0x51d0f5
test al, 1
je 0x51c980
test al, 2
jne 0x51c9ab
cmp ecx, 9
jbe 0x51cb09
mov edx, eax
or dl, 2
lock cmpxchg byte [edi], dl
jne 0x51c98f
mov dword [esi + 0x58], 0
mov dword [esi + 0x88], 0
push 0
call fcn.0044a1d0
add esp, 4
mov dword [esi + 0x10], eax
cmp dword [esi + 0x10], 0
jne 0x51ca10
lea eax, [esi + 0x38]
push eax
call fcn.00449ee0
add esp, 4
mov eax, dword [esi + 0x50]
movsd xmm0, qword [esi + 0x48]
movsd xmm2, qword [esi + 0x38]
movsd xmm1, qword [esi + 0x40]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x58]
movsd qword [esi + 0x68], xmm0
movsd qword [esi + 0x60], xmm1
movsd qword [esi + 0x58], xmm2
mov dword [esi + 0x10], eax
nop word cs:[eax + eax]
nop
mov eax, dword [0x596088]
mov edx, dword [eax]
test edx, edx
jne 0x51ca2c
mov dword [esi + 0x88], 0
call fcn.0051dc10
mov edx, eax
movzx eax, byte [edx + 8]
xor ecx, ecx
mov ebx, dword [esi + 0x34]
sub cl, al
mov eax, dword [edx + 4]
shr ebx, cl
cmp ebx, eax
jae 0x51d10d
mov dword [esi + 0xc], edx
mov edx, dword [edx]
shl ebx, 6
xor eax, eax
mov ecx, 1
lock cmpxchg dword [edx + ebx + 0x18], ecx
lea edi, [edx + ebx + 0x18]
je 0x51ca84
mov dword [esi + 0x88], 0
push edi
mov dword [esi + 0x14], edi
mov dword [esi + 8], ebx
mov dword [esi + 4], edx
call fcn.0051dc90
mov edx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0x14]
add esp, 4
mov eax, dword [0x596088]
mov eax, dword [eax]
cmp dword [esi + 0xc], eax
je 0x51cac3
mov eax, 0xffffffff
lock xadd dword [edi], eax
cmp eax, 4
jb 0x51ca10
and eax, 2
jne 0x51ca10
mov dword [esi + 0x88], 0
push edi
call fcn.0051dde0
add esp, 4
jmp 0x51ca10
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
cmp al, 3
jne 0x51cb2a
mov dword [esi + 4], edx
movzx eax, byte [esi + 0x1b]
mov edx, dword [esi + 0x10]
mov byte [edx + 0x18], al
mov dword [edx + 0xc], 0
mov dword [edx + 8], ecx
mov dword [edx + 0x14], 0
mov dword [edx + 4], 1
mov edx, dword [esi + 4]
cmp dword [edx + ebx + 0x1c], 0
je 0x51cb7e
mov eax, dword [edx + ebx + 0x20]
add eax, 0xc
jmp 0x51cb82
lea ebx, [ecx + 1]
cmp ecx, 3
jae 0x51cb67
mov eax, 2
shl eax, cl
nop dword [eax + eax]
pause
dec eax
jne 0x51cb20
jmp 0x51d0eb
mov eax, 0xffffffff
mov ecx, 1
lock xadd dword [edi], eax
cmp eax, 4
jb 0x51d0b3
and eax, 2
jne 0x51d0b3
mov dword [esi + 0x88], 0
push edi
call fcn.0051dde0
mov ecx, 1
add esp, 4
jmp 0x51d0b3
mov dword [esi + 0x88], 0xffffffff
push 0
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x51d0eb
lea eax, [edx + ebx + 0x1c]
mov ecx, dword [esi + 0x10]
mov dword [eax], ecx
mov dword [edx + ebx + 0x20], ecx
mov eax, 0xffffffff
lock xadd dword [edi], eax
cmp eax, 4
jb 0x51cbb1
and eax, 2
jne 0x51cbb1
mov dword [esi + 0x88], 0
push edi
call fcn.0051dde0
add esp, 4
mov eax, dword [esi + 0x10]
cmp dword [ebp + 0x14], 0x3b9aca00
lea edx, [eax + 4]
mov eax, dword [eax]
mov dword [esi + 0xc], edx
mov ecx, dword [eax]
jne 0x51cbec
test ecx, ecx
je 0x51cda0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x88], 0
push 0
push 0
push edx
push eax
call ecx
jmp 0x51cfd3
test ecx, ecx
je 0x51cde1
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x88], 0
mov dword [esi + 4], ecx
mov dword [esi + 0x14], eax
call fcn.00460590
mov ebx, dword [esi + 0xc]
cmp dword [ebp + 0xc], eax
mov edi, dword [ebp + 0x10]
sbb edi, edx
jb 0x51cc3a
mov edi, eax
mov ebx, edx
xor edi, dword [ebp + 0xc]
xor ebx, dword [ebp + 0x10]
or ebx, edi
mov ebx, dword [esi + 0xc]
jne 0x51cf0b
cmp ecx, dword [ebp + 0x14]
jb 0x51cf0b
mov eax, 2
xchg dword [ebx], eax
test eax, eax
je 0x51cefb
nop dword [eax]
mov eax, dword [0x596088]
mov ebx, dword [eax]
test ebx, ebx
jne 0x51cc6c
mov dword [esi + 0x88], 0
call fcn.0051dc10
mov ebx, eax
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edx, dword [eax + 8]
movzx eax, byte [ebx + 8]
sub cl, al
mov eax, dword [ebx + 4]
imul edi, edx, 0x9e3779b9
shr edi, cl
cmp edi, eax
jae 0x51d128
mov dword [esi + 4], ebx
mov ebx, dword [ebx]
shl edi, 6
mov ecx, 1
lea eax, [ebx + edi + 0x18]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0xc], eax
xor eax, eax
lock cmpxchg dword [ebx + edi + 0x18], ecx
mov ebx, dword [esi + 0xc]
je 0x51ccd3
mov dword [esi + 0x88], 0
push ebx
mov dword [esi + 0x14], edx
mov dword [esi + 8], edi
call fcn.0051dc90
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
add esp, 4
mov eax, dword [0x596088]
mov eax, dword [eax]
cmp dword [esi + 4], eax
jne 0x51cce9
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 8]
cmp eax, edx
je 0x51cd1c
mov eax, 0xffffffff
lock xadd dword [ebx], eax
cmp eax, 4
jb 0x51cc50
and eax, 2
jne 0x51cc50
mov dword [esi + 0x88], 0
push ebx
call fcn.0051dde0
add esp, 4
jmp 0x51cc50
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], edx
mov dword [esi + 8], edi
mov edx, dword [eax]
mov edi, dword [eax + 4]
xor eax, eax
test edi, edi
setne al
xor ecx, ecx
cmp edi, 2
sete cl
cmp dword [edx], 0
cmove ecx, eax
test cl, cl
je 0x51cec8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + eax + 0x1c]
test edx, edx
je 0x51d081
cmp edx, dword [esi + 0x10]
je 0x51cfe0
mov al, 1
nop word cs:[eax + eax]
nop
mov ecx, edx
mov edi, dword [edx + 8]
mov edx, dword [edx + 0xc]
test edx, edx
je 0x51d081
cmp edi, dword [esi + 0x14]
movzx eax, al
mov edi, 0
cmove eax, edi
cmp edx, dword [esi + 0x10]
jne 0x51cd70
lea edx, [ecx + 0xc]
and al, 1
mov dword [esi + 4], edx
jmp 0x51cff1
mov ecx, dword [edx]
test ecx, ecx
je 0x51cfd3
mov eax, dword [eax + 4]
mov dword [esi + 0x88], 0
mov dword [esi + 4], eax
nop word [eax + eax]
mov dword [esi + 0x38], 1
push 0xffffffffffffffff
push 4
lea eax, [esi + 0x38]
push eax
push edx
call dword [esi + 4]
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
test eax, eax
jne 0x51cdc0
jmp 0x51cfd3
mov ecx, dword [edx]
test ecx, ecx
je 0x51cfd3
mov eax, dword [eax + 4]
mov dword [esi + 0x88], 0
mov dword [esi + 8], eax
nop dword [eax + eax]
call fcn.00460590
cmp dword [ebp + 0xc], eax
mov edi, dword [ebp + 0x10]
sbb edi, edx
jb 0x51cc50
mov edi, eax
mov ebx, edx
xor edi, dword [ebp + 0xc]
xor ebx, dword [ebp + 0x10]
or ebx, edi
jne 0x51ce2a
cmp ecx, dword [ebp + 0x14]
jae 0x51cc50
push ecx
push edx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00460b20
add esp, 0x18
mov edi, eax
mov eax, edx
mov ebx, 0x3e8
mul ebx
mov dword [esi + 0x14], eax
mov eax, edi
seto byte [esi + 4]
mul ebx
mov ebx, edx
mov edi, eax
add ebx, dword [esi + 0x14]
setb al
or al, byte [esi + 4]
jne 0x51ce91
xor eax, eax
add ecx, 0xf423f
setb al
push 0
push 0xf4240
push eax
push ecx
call fcn.00515f00
add edi, eax
mov eax, 0
adc ebx, edx
setb cl
neg ebx
sbb eax, eax
test cl, 1
je 0x51cea0
mov eax, 0xffffffff
jmp 0x51cea2
or eax, edi
mov dword [esi + 0x38], 1
push eax
push 4
lea eax, [esi + 0x38]
push eax
push dword [esi + 0xc]
call dword [esi + 8]
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x51ce00
jmp 0x51cfd3
mov eax, 0xffffffff
lock xadd dword [ebx], eax
cmp eax, 4
jb 0x51cfd3
and eax, 2
jne 0x51cfd3
mov dword [esi + 0x88], 0
push ebx
call fcn.0051dde0
add esp, 4
jmp 0x51cfd3
push 0
push 0
push ebx
push dword [esi + 0x14]
call dword [esi + 4]
jmp 0x51cfd3
push ecx
push edx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00460b20
add esp, 0x18
mov dword [esi + 0x2c], ecx
mov ecx, 0xff676980
mov edi, edx
mov ebx, eax
mov dword [esi + 0x24], eax
mul ecx
mov dword [esi + 0x28], eax
mov eax, edi
mov dword [esi + 8], edx
mul ecx
add eax, dword [esi + 8]
mov ecx, edx
mov edx, 0xffffffff
mov dword [esi + 8], eax
mov eax, ebx
adc ecx, 0
mul edx
add dword [esi + 8], eax
mov dword [esi + 0x1c], eax
mov ebx, edx
mov eax, edi
adc ecx, edx
mov edx, 0xffffffff
setb byte [esi + 0x20]
mul edx
add eax, ecx
mov ecx, 0xff676980
mov dword [esi + 0x30], eax
movzx eax, byte [esi + 0x20]
adc edx, eax
sub ebx, dword [esi + 0x24]
mov dword [esi + 0x20], edx
sub ebx, edi
sar edi, 0x1f
mov eax, edi
mov edi, dword [esi + 8]
imul ecx
add eax, dword [esi + 0x1c]
mov ecx, edi
adc edx, ebx
add eax, dword [esi + 0x30]
adc edx, dword [esi + 0x20]
sar ecx, 0x1f
xor edx, ecx
xor ecx, eax
or ecx, edx
je 0x51cfa4
mov ecx, dword [esi + 0xc]
jmp 0x51cfc8
mov ecx, dword [esi + 0x2c]
xor eax, eax
add ecx, 0x63
setb al
push 0
push 0x64
push eax
push ecx
call fcn.00515f00
mov ecx, dword [esi + 0x28]
sub ecx, eax
mov eax, ecx
mov ecx, dword [esi + 0xc]
sbb edi, edx
jno 0x51d031
push 0
push 0
push ecx
push dword [esi + 0x14]
call dword [esi + 4]
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov edi, dword [eax + 0x10]
jmp 0x51d0b3
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
lea eax, [ecx + eax + 0x1c]
xor ecx, ecx
mov dword [esi + 4], eax
mov al, 1
mov edx, dword [esi + 0x10]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 0x10]
mov edx, dword [edx + 0xc]
mov dword [edi], edx
mov dword [esi + 0x24], edx
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x1c]
cmp dword [edx + edi + 0x20], ebx
mov edi, dword [esi + 0x1c]
je 0x51d06a
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0xc]
test edx, edx
je 0x51d076
nop dword [eax + eax]
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 0x14]
je 0x51d081
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x51d020
jmp 0x51d076
mov dword [esi + 0x38], eax
lea eax, [esi + 0x38]
mov dword [esi + 0x3c], edi
push eax
push 0
push ecx
push dword [esi + 0x14]
call dword [esi + 4]
mov ecx, dword [esi + 0xc]
test eax, eax
je 0x51cfd3
mov eax, 2
xchg dword [ecx], eax
test eax, eax
jne 0x51cc50
push 0
push 0
push ecx
push dword [esi + 0x14]
call dword [esi + 4]
jmp 0x51cfd3
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0xc]
lea edx, [edi + edx + 0x20]
mov dword [edx], ecx
test al, al
je 0x51d081
mov eax, dword [ebp + 8]
lock and byte [eax], 0xfd
mov eax, 0xffffffff
mov ecx, 2
lock xadd dword [ebx], eax
cmp eax, 4
jb 0x51d0b3
and eax, 2
jne 0x51d0b3
mov dword [esi + 0x88], 0
push ebx
call fcn.0051dde0
mov ecx, 2
add esp, 4
jmp 0x51d0b3
cmp dword [esi + 0x58], 0
je 0x51d0d3
lea eax, [esi + 0x58]
mov dword [esi + 0x88], 0xffffffff
push eax
mov ebx, ecx
call fcn.0044a1c0
mov ecx, ebx
add esp, 4
xor ebx, ebx
test ecx, ecx
je 0x51d0e3
cmp ecx, 1
jne 0x51d0f7
mov edi, dword [ebp + 8]
jmp 0x51d0eb
cmp edi, 1
mov edi, dword [ebp + 8]
je 0x51d0f5
movzx eax, byte [edi]
mov ecx, ebx
jmp 0x51c98f
mov bl, 1
mov eax, dword [esi + 0x80]
mov dword fs:[0], eax
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x88], 0
push 0x568c78
push eax
push ebx
call fcn.0051eec0
add esp, 0xc
jmp 0x51d141
mov dword [esi + 0x88], 0
push 0x568c88
push eax
push edi
call fcn.0051eec0
add esp, 0xc
ud2