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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xe0
mov esi, esp
mov dword [esi + 0xc8], ebp
lea eax, [esi + 0xd0]
mov dword [esi + 0x48], edx
mov dword [esi + 0x58], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5632f0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov eax, dword [ecx]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x52a668
cmp dword [ebp + 0xc], 0x3b9aca00
jne 0x52a113
call fcn.004da120
jmp 0x52a0f5
call fcn.004dc930
mov dword [esi], ecx
mov ecx, dword [esi + 0x48]
mov ebx, eax
mov edi, edx
cmp eax, ecx
mov eax, edx
mov edx, dword [ebp + 8]
sbb eax, edx
jb 0x52a14e
mov edx, edi
mov eax, ebx
xor edx, dword [ebp + 8]
xor eax, ecx
mov ecx, dword [esi + 0x48]
or edx, eax
mov edx, dword [ebp + 8]
jne 0x52a688
mov eax, dword [esi]
cmp eax, dword [ebp + 0xc]
jae 0x52a688
push dword [esi]
push edi
push ebx
push dword [ebp + 0xc]
call fcn.004dcae0
add esp, 0x10
cmp ecx, 0x3b9aca00
mov edi, 0
cmove ecx, edi
cmove edx, edi
cmove eax, edi
and dword [esi + 0xd8], 0
mov dword [esi + 0x14], ecx
mov dword [esi + 4], edx
mov dword [esi], eax
call fcn.004da2a0
mov ebx, eax
test eax, eax
je 0x52a6a3
lock dec byte [ebx + 0x18]
je 0x52a653
mov ecx, dword [0x640c50]
mov eax, ebx
add eax, 0x18
mov dword [esi + 0x3c], eax
test ecx, ecx
je 0x52a224
mov eax, dword [esi + 4]
mov edi, 0x3e8
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ecx
mul edi
mov ebx, eax
mov eax, dword [esi]
seto cl
mul edi
mov edi, edx
add edi, ebx
mov ebx, eax
setb al
or al, cl
jne 0x52a204
mov eax, dword [esi + 0x14]
xor edx, edx
mov ecx, 0xf4240
div ecx
add ebx, eax
adc edi, 0
jb 0x52a204
xor eax, eax
test edx, edx
setne al
add ebx, eax
mov eax, 0
adc edi, 0
setb cl
neg edi
sbb eax, eax
test cl, cl
je 0x52a45e
xor eax, eax
dec eax
mov ecx, dword [esi + 0xc]
push eax
push 1
push 0x5fd77c
mov edi, dword [esi + 0x3c]
push edi
call ecx
xor eax, eax
xchg byte [edi], al
mov ebx, dword [esi + 0x10]
jmp 0x52a653
mov ecx, dword [0x640048]
cmp ecx, 0xffffffff
jne 0x52a26a
or dword [esi + 0x4c], 0xffffffff
mov eax, dword [0x640054]
push 0
push 0
push 0xc0000000
lea ecx, [esi + 0x4c]
push ecx
call eax
test eax, eax
jne 0x52a6b8
mov ecx, dword [esi + 0x4c]
xor eax, eax
dec eax
lock cmpxchg dword [0x640048], ecx
je 0x52a26a
mov edi, eax
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, edi
mov eax, dword [esi]
mov dword [esi + 0x38], ecx
mov ecx, 0x3b9aca00
mul ecx
mov edi, eax
mov eax, dword [esi + 4]
mov ecx, edx
mov edx, 0x3b9aca00
mul edx
add eax, ecx
adc edx, 0
add edi, dword [esi + 0x14]
adc eax, 0
adc edx, 0
mov dword [esi + 0x34], eax
setb byte [esi]
push 0xffffffffffffff9c
pop ecx
cmp ecx, edi
mov ecx, 0xffffffff
sbb ecx, eax
push 0x31
pop ecx
sbb ecx, edx
movzx ecx, byte [esi]
mov eax, 0
mov dword [esi + 0x5c], edi
sbb eax, ecx
jb 0x52a5e7
mov eax, edi
mov edi, dword [esi + 0x34]
mov dword [esi + 0x10], ebx
mov ebx, 0
mov dword [esi + 0x54], edx
mov dword [esi + 0x50], ecx
add eax, 0x63
mov dword [esi + 4], eax
adc edi, ebx
mov ebx, edx
mov edx, ecx
mov dword [esi], edi
mov edi, eax
mov eax, 0
adc ebx, eax
adc edx, eax
mov eax, dword [esi]
or edi, ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x18], edx
or eax, edx
or edi, eax
sete byte [esi + 0x14]
bsr ecx, ebx
bsr eax, edx
xor ecx, 0x1f
xor eax, 0x1f
add ecx, 0x20
test edx, edx
cmovne ecx, eax
bsr eax, dword [esi + 4]
bsr edi, dword [esi]
xor eax, 0x1f
xor edi, 0x1f
add eax, 0x20
cmp dword [esi], 0
cmovne eax, edi
add eax, 0x40
or ebx, edx
cmovne eax, ecx
push 0x79
pop ecx
sub ecx, eax
mov edx, 0
mov ebx, 0
mov edi, 0
sbb edx, edx
sbb ebx, ebx
sbb edi, edi
push 0x7f
pop eax
cmp eax, ecx
mov eax, 0
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], edi
sbb eax, edx
mov eax, 0
sbb eax, ebx
mov eax, 0
mov ebx, 0
sbb eax, edi
setb al
or al, byte [esi + 0x14]
mov eax, dword [esi]
cmovne eax, ebx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edi, eax
cmovne eax, ebx
mov dword [esi + 0x1c], eax
jne 0x52a5de
mov eax, ecx
mov dword [esi + 0x20], ecx
mov ecx, edx
mov ebx, dword [esi + 0x10]
xor eax, 0x7f
or ecx, dword [esi + 0x24]
or eax, dword [esi + 0x28]
or ecx, eax
je 0x52a5e1
mov dword [esi + 0x94], edi
mov edi, edx
mov eax, dword [esi]
mov dword [esi + 0x98], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x18]
and dword [esi + 0x90], 0
and dword [esi + 0x8c], 0
and dword [esi + 0x88], 0
and dword [esi + 0x84], 0
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x20]
xor al, 0x7f
mov ch, al
shr al, 3
and al, 0xf
and ch, 7
neg al
mov cl, ch
movsx eax, al
mov edx, dword [esi + eax + 0x9c]
mov ebx, dword [esi + eax + 0xa0]
shld ebx, edx, cl
shl edx, cl
not cl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x2c], edx
mov edx, dword [esi + eax + 0x98]
mov ebx, dword [esi + eax + 0x94]
mov eax, edx
shr eax, 1
shr eax, cl
mov cl, ch
shld edx, ebx, cl
shl ebx, cl
mov ecx, ebx
mov ebx, dword [esi + 0x20]
mov dword [esi + 0xc], edx
xor edx, edx
add ebx, 1
adc edi, edx
mov dword [esi + 0x30], edi
adc dword [esi + 0x28], edx
mov edi, dword [esi + 0x24]
adc edi, edx
jae 0x52a465
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
jmp 0x52a5c9
or eax, ebx
jmp 0x52a207
or dword [esi + 0x2c], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x64], eax
mov eax, dword [esi]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x18]
and dword [esi + 0x80], 0
and dword [esi + 0x7c], 0
and dword [esi + 0x78], 0
and dword [esi + 0x74], 0
mov dword [esi + 0x70], eax
mov eax, ebx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ebx
mov ch, bl
shr al, 3
and ch, 7
and al, 0xf
mov cl, ch
movzx eax, al
mov ebx, dword [esi + eax + 0x70]
mov dword [esi + 0x24], edi
mov edx, dword [esi + eax + 0x6c]
mov edi, edx
add edx, edx
shrd edi, ebx, cl
mov dword [esi + 4], edi
mov edi, dword [esi + eax + 0x68]
mov dword [esi + 8], edi
mov edi, dword [esi + 8]
shr edi, cl
not cl
shl edx, cl
mov cl, ch
or edx, edi
mov edi, dword [esi + 8]
shr ebx, cl
mov dword [esi], edx
mov edx, dword [esi + eax + 0x64]
mov dword [esi + 0x14], ebx
mov ebx, dword [esi + 0x30]
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
shrd edx, edi, cl
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x40], edx
mov dword [esi + 0x30], ebx
mov edi, dword [esi + 4]
mov eax, dword [esi]
mov ebx, dword [esi + 0x40]
mov edx, dword [esi + 8]
mov dword [esi + 8], 0
shld dword [esi + 0x14], edi, 1
shld edi, eax, 1
shld eax, ebx, 1
mov dword [esi + 4], edi
mov dword [esi], eax
mov eax, dword [esi + 0x44]
mov edi, dword [esi + 0x2c]
shld ebx, eax, 1
shld eax, edi, 1
or eax, edx
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0xc]
shld edi, eax, 1
shld eax, ecx, 1
add ecx, ecx
or ecx, dword [esi + 0x18]
or edi, edx
or eax, edx
mov dword [esi + 0x2c], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
push 0x63
pop eax
mov edx, dword [esi]
cmp eax, ebx
mov ecx, 0
mov edi, dword [esi + 0x14]
sbb ecx, edx
mov ecx, 0
sbb ecx, dword [esi + 4]
mov ecx, 0
sbb ecx, edi
sar ecx, 0x1f
mov eax, ecx
and ecx, 0x64
and eax, 1
sub ebx, ecx
mov dword [esi + 0x18], eax
mov eax, edx
mov dword [esi + 0x40], ebx
mov ebx, dword [esi + 0x30]
mov edx, dword [esi + 0x24]
sbb eax, 0
sbb dword [esi + 4], 0
mov dword [esi], eax
mov eax, edi
mov edi, dword [esi + 0x20]
sbb eax, 0
add edi, 0xffffffff
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x28]
adc ebx, 0xffffffff
mov dword [esi + 0x20], edi
mov ecx, ebx
adc eax, 0xffffffff
adc edx, 0xffffffff
or edi, eax
mov dword [esi + 0x28], eax
or ecx, edx
mov dword [esi + 0x24], edx
or edi, ecx
mov ecx, dword [esi + 0x1c]
jne 0x52a4fa
mov eax, dword [esi + 0xc]
shld eax, ecx, 1
add ecx, ecx
or eax, dword [esi + 8]
or ecx, dword [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov ebx, dword [esi + 0x10]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov edi, dword [esi + 0x1c]
mov eax, 0
neg edi
sbb eax, dword [esi + 0xc]
cmp dword [esi + 0x5c], 0xffffff9d
sbb dword [esi + 0x34], 0xffffffff
sbb edx, 0x31
sbb ecx, 0
mov ecx, 0x80000000
cmovae eax, ecx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xac], eax
mov eax, 0
cmovae edi, eax
mov dword [esi + 0xa8], edi
mov eax, dword [0x64005c]
push ecx
push 0
mov edi, dword [esi + 0x3c]
push edi
push dword [esi + 0x38]
call eax
test eax, eax
mov eax, 0
xchg byte [edi], al
je 0x52a653
cmp al, 1
jne 0x52a653
mov eax, dword [0x64005c]
push 0
push 0
push edi
push dword [esi + 0x38]
call eax
lock dec dword [ebx]
jne 0x52a0f5
mov ecx, ebx
call fcn.004da0e0
jmp 0x52a0f5
lea ecx, [eax - 1]
cmp ecx, 2
jb 0x52a673
push 3
pop eax
mov ecx, dword [esi + 0xd0]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
sub esp, 4
xor edi, edi
inc edi
mov edx, edi
call fcn.00516e0d
pop ecx
cmp eax, 4
cmove eax, edi
jmp 0x52a673
push 0x5e
pop edx
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
push 0x5fbbd4
call fcn.00576e90
pop eax
jmp 0x52a6fe
xor edx, edx
lea ecx, [esi + 0xa4]
lea edi, [esi + 0xc0]
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
mov dword [ecx], eax
lea ecx, [esi + 0xa8]
inc edx
mov dword [edi + 4], fcn.00442da0
mov dword [ecx], str.Unable_to_create_keyed_event_handle:_error_
mov dword [ecx + 4], edx
and dword [ecx + 0x10], 0
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], edx
mov dword [esi + 0xd8], edx
mov edx, 0x5fd7e0
call fcn.005769a0
ud2