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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov esi, esp
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xc4], esp
mov dword [esi + 0xd0], 0xffffffff
mov dword [esi + 0xcc], 0x5310d0
lea eax, [esi + 0xc8]
mov ecx, dword fs:[0]
mov dword [esi + 0xc8], ecx
mov dword fs:[0], eax
mov dword [esi + 0xd0], 0
call fcn.00514770
mov dword [esi + 0x40], eax
mov edi, eax
lock dec byte [eax + 0x18]
je 0x515047
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add edi, 0x18
mov dword [esi + 4], eax
mov eax, dword [0x6373a8]
mov dword [esi + 0x24], edi
test eax, eax
je 0x514bd7
mov dword [esi], eax
mov ebx, 0x3e8
mov eax, ecx
mul ebx
mov edi, eax
mov eax, dword [ebp + 8]
seto cl
mul ebx
mov ebx, edx
add ebx, edi
mov edi, eax
setb al
or al, cl
jne 0x514bb9
mov eax, dword [ebp + 0x10]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add edi, edx
adc ebx, 0
jb 0x514bb9
imul eax, edx, 0xf4240
xor ecx, ecx
sub dword [esi + 4], eax
setne cl
xor eax, eax
add edi, ecx
adc ebx, 0
setb cl
neg ebx
sbb eax, eax
test cl, cl
je 0x514c1b
mov eax, 0xffffffff
mov edi, dword [esi + 0x24]
mov ecx, dword [esi]
push eax
push 1
push 0x60d44c
push edi
call ecx
xor eax, eax
xchg byte [edi], al
jmp 0x515047
mov ebx, dword [0x636430]
cmp ebx, 0xffffffff
jne 0x514c2b
mov dword [esi + 0x44], 0xffffffff
lea ecx, [esi + 0x44]
mov eax, dword [0x63643c]
push 0
push 0
push 0xc0000000
push ecx
call eax
test eax, eax
jne 0x515068
mov ecx, dword [esi + 0x44]
mov eax, 0xffffffff
lock cmpxchg dword [0x636430], ecx
jne 0x514c1f
mov ebx, ecx
jmp 0x514c28
or eax, edi
jmp 0x514bbe
mov ebx, eax
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [ebp + 8]
mov edi, 0x3b9aca00
mov eax, edx
mov dword [esi + 0x58], ebx
mul edi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov ecx, edx
mul edi
mov edi, ebx
add eax, ecx
mov ecx, 0xffffff9c
adc edx, 0
add edi, dword [ebp + 0x10]
adc eax, 0
adc edx, 0
setb bl
cmp ecx, edi
mov ecx, 0xffffffff
sbb ecx, eax
mov ecx, 0x31
movzx ebx, bl
sbb ecx, edx
mov ecx, 0
mov dword [esi + 0x54], ebx
sbb ecx, ebx
jb 0x514e22
mov dword [esi + 0x4c], edi
add edi, 0x63
mov dword [esi + 0x48], eax
mov dword [esi + 0x50], edx
mov dword [esi + 4], edi
mov edi, eax
adc eax, 0
mov edi, edx
mov edx, ebx
mov ecx, dword [esi + 4]
adc edi, 0
mov dword [esi], eax
adc edx, 0
mov dword [esi + 8], edi
or eax, edx
mov dword [esi + 0xc], edx
or ecx, edi
or ecx, eax
sete byte [esi + 0x10]
bsr ecx, edi
bsr eax, edx
xor ecx, 0x1f
xor eax, 0x1f
add ecx, 0x20
test edx, edx
cmovne ecx, eax
bsr eax, dword [esi + 4]
bsr ebx, dword [esi]
xor eax, 0x1f
xor ebx, 0x1f
add eax, 0x20
cmp dword [esi], 0
cmovne eax, ebx
mov ebx, 0
add eax, 0x40
or edi, edx
mov edx, 0
mov edi, 0
cmovne eax, ecx
mov ecx, 0x79
sub ecx, eax
mov eax, 0x7f
sbb edx, edx
sbb edi, edi
sbb ebx, ebx
cmp eax, ecx
mov eax, 0
mov dword [esi + 0x20], edi
sbb eax, edx
mov eax, 0
mov dword [esi + 0x1c], ebx
sbb eax, edi
mov eax, 0
mov edi, 0
sbb eax, ebx
mov ebx, dword [esi + 4]
setb al
or al, byte [esi + 0x10]
mov eax, dword [esi]
cmovne eax, edi
cmovne ebx, edi
mov dword [esi + 0x14], eax
jne 0x514e27
mov eax, ecx
mov dword [esi + 0x18], ecx
mov ecx, edx
xor eax, 0x7f
or ecx, dword [esi + 0x1c]
or eax, dword [esi + 0x20]
or ecx, eax
mov ecx, dword [esi + 0x14]
je 0x514fdb
mov eax, dword [esi + 4]
mov dword [esi + 0xb0], eax
mov eax, dword [esi]
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 8]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xbc], eax
mov eax, dword [esi + 0x18]
xor al, 0x7f
mov ch, al
shr al, 3
and al, 0xf
and ch, 7
neg al
mov cl, ch
movsx eax, al
mov edi, dword [esi + eax + 0xb8]
mov ebx, dword [esi + eax + 0xbc]
shld ebx, edi, cl
shl edi, cl
not cl
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x28], edi
mov edi, dword [esi + eax + 0xb4]
mov ebx, dword [esi + eax + 0xb0]
mov eax, edi
shr eax, 1
shr eax, cl
mov cl, ch
shld edi, ebx, cl
shl ebx, cl
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x14], edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x10], ebx
add ecx, 1
adc edx, 0
mov dword [esi + 0x2c], edx
mov edx, dword [esi + 0x20]
adc edx, 0
adc edi, 0
jae 0x514e2f
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
jmp 0x514fc9
jmp 0x514fe4
mov ecx, dword [esi + 0x14]
jmp 0x514fdb
or dword [esi + 0x28], eax
mov eax, dword [esi + 4]
mov ebx, edx
mov edx, edi
mov dword [esi + 0x80], eax
mov eax, dword [esi]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x9c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x8c], eax
mov eax, ecx
mov ch, al
mov dword [esi + 0x18], eax
shr al, 3
and al, 0xf
and ch, 7
movzx eax, al
mov cl, ch
mov edi, dword [esi + eax + 0x8c]
mov dword [esi + 0x1c], edx
mov edx, ebx
mov ebx, dword [esi + eax + 0x88]
mov dword [esi + 0x20], edx
mov edx, ebx
add ebx, ebx
shrd edx, edi, cl
mov dword [esi], edx
mov edx, dword [esi + eax + 0x84]
mov dword [esi + 8], edx
mov edx, dword [esi + 8]
shr edx, cl
not cl
shl ebx, cl
mov cl, ch
or ebx, edx
mov edx, dword [esi + 8]
shr edi, cl
mov dword [esi + 0x38], ebx
mov eax, dword [esi + eax + 0x80]
mov dword [esi + 4], edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
shrd eax, edx, cl
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
nop word cs:[eax + eax]
nop
mov ecx, dword [esi]
mov edi, dword [esi + 0x38]
mov dword [esi + 0x2c], eax
mov edx, dword [esi + 0x34]
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 8]
mov dword [esi + 8], 0
shld dword [esi + 4], ecx, 1
shld ecx, edi, 1
shld edi, edx, 1
shld edx, eax, 1
mov dword [esi], ecx
mov ecx, dword [esi + 0x28]
shld eax, ecx, 1
or eax, ebx
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x14]
shld ecx, eax, 1
or ecx, ebx
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x10]
shld eax, ecx, 1
add ecx, ecx
or ecx, dword [esi + 0xc]
or eax, ebx
mov ebx, dword [esi + 4]
mov dword [esi + 0x14], eax
mov eax, 0x63
cmp eax, edx
mov dword [esi + 0x10], ecx
mov ecx, 0
sbb ecx, edi
mov ecx, 0
sbb ecx, dword [esi]
mov ecx, 0
sbb ecx, ebx
sar ecx, 0x1f
mov eax, ecx
and ecx, 0x64
and eax, 1
sub edx, ecx
mov ecx, ebx
mov ebx, dword [esi + 0x1c]
sbb edi, 0
mov dword [esi + 0x34], edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x2c]
sbb dword [esi], 0
mov dword [esi + 0x38], edi
mov edi, dword [esi + 0x20]
sbb ecx, 0
add edx, 0xffffffff
adc eax, 0xffffffff
mov dword [esi + 4], ecx
mov dword [esi + 0x18], edx
adc edi, 0xffffffff
mov ecx, eax
adc ebx, 0xffffffff
or edx, edi
mov dword [esi + 0x20], edi
or ecx, ebx
mov dword [esi + 0x1c], ebx
or edx, ecx
jne 0x514f00
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
shld ecx, ebx, 1
add ebx, ebx
or ecx, dword [esi + 8]
or ebx, dword [esi + 0xc]
mov edx, dword [esi + 0x50]
mov edi, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
neg ebx
mov dword [esi + 0x10], ebx
mov ebx, 0
sbb ebx, ecx
cmp edi, 0xffffff9d
mov ecx, 0x80000000
sbb eax, 0xffffffff
mov eax, 0
sbb edx, 0x31
sbb dword [esi + 0x54], 0
cmovb ecx, ebx
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x10]
cmovae ecx, eax
mov dword [esi + 0x60], ecx
lea ecx, [esi + 0x60]
mov eax, dword [0x636444]
push ecx
push 0
mov edi, dword [esi + 0x24]
push edi
mov ebx, dword [esi + 0x58]
push ebx
call eax
test eax, eax
mov eax, 0
xchg byte [edi], al
je 0x515047
cmp al, 1
jne 0x515047
mov eax, dword [0x636444]
push 0
push 0
push edi
push ebx
call eax
mov ecx, dword [esi + 0x40]
lock dec dword [ecx]
jne 0x515054
call fcn.00449c60
mov eax, dword [esi + 0xc8]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x5c], eax
lea eax, [esi + 0x5c]
mov dword [esi + 0x60], 0x60d478
mov dword [esi + 0x64], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0xd0], 1
mov dword [esi + 0x78], eax
lea eax, [esi + 0x78]
mov dword [esi + 0x7c], fcn.00545f80
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], 1
lea eax, [esi + 0x60]
push 0x60d4b0
push eax
call fcn.005b1670
add esp, 8
ud2