Function at 0x49c4f0
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], 0x4c3800
mov dword [esi + 4], ecx
lea eax, [esi + 0xc8]
mov dword [esi + 8], edx
mov ecx, dword fs:[0]
mov dword [esi + 0xc8], ecx
mov dword fs:[0], eax
mov dword [esi + 0xd0], 0
call fcn.00498ec0
mov ebx, eax
test eax, eax
je 0x49caa2
lock dec byte [ebx + 0x18]
je 0x49ca82
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, ebx
add eax, 0x18
mov dword [esi + 0x30], eax
mov eax, dword [0x537ff0]
test eax, eax
je 0x49c5ff
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
mov edi, 0x3e8
mov dword [esi + 0x10], ebx
mul edi
mov ebx, eax
mov eax, dword [esi + 4]
seto cl
mul edi
mov edi, edx
add edi, ebx
mov ebx, eax
setb al
or al, cl
jne 0x49c5dd
mov eax, dword [ebp + 8]
mov ecx, 0x431bde83
mul ecx
shr edx, 0x12
add ebx, edx
adc edi, 0
jb 0x49c5dd
imul eax, edx, 0xf4240
xor ecx, ecx
sub dword [esi + 0x14], eax
setne cl
xor eax, eax
add ebx, ecx
adc edi, 0
setb cl
neg edi
sbb eax, eax
test cl, cl
je 0x49c854
mov eax, 0xffffffff
mov ecx, dword [esi + 0x18]
push eax
push 1
push 0x529d68
mov edi, dword [esi + 0x30]
push edi
call ecx
xor eax, eax
xchg byte [edi], al
mov ebx, dword [esi + 0x10]
jmp 0x49ca82
mov ecx, dword [0x537034]
cmp ecx, 0xffffffff
jne 0x49c64a
mov dword [esi + 0x4c], 0xffffffff
lea ecx, [esi + 0x4c]
mov eax, dword [0x53703c]
push 0
push 0
push 0xc0000000
push ecx
call eax
test eax, eax
jne 0x49cabb
mov ecx, dword [esi + 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0x537034], ecx
je 0x49c64a
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
mov eax, dword [esi + 4]
mov dword [esi + 0x40], ecx
mov ecx, 0x3b9aca00
mul ecx
mov edi, eax
mov eax, dword [esi + 8]
mov dword [esi + 4], edx
mul ecx
mov ecx, edi
mov edi, eax
mov eax, ecx
mov ecx, 0xffffff9c
add edi, dword [esi + 4]
adc edx, 0
add eax, dword [ebp + 8]
adc edi, 0
mov dword [esi + 0x3c], eax
adc edx, 0
mov dword [esi + 0x58], edi
setb byte [esi + 8]
cmp ecx, eax
mov ecx, 0xffffffff
mov eax, 0
sbb ecx, edi
mov ecx, 0x31
sbb ecx, edx
movzx ecx, byte [esi + 8]
sbb eax, ecx
jb 0x49c84f
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x54], edx
mov ebx, edx
mov dword [esi + 0x50], ecx
mov edx, ecx
add eax, 0x63
mov dword [esi + 4], eax
adc edi, 0
mov ecx, dword [esi + 4]
adc ebx, 0
mov dword [esi + 8], edi
adc edx, 0
mov dword [esi + 0xc], ebx
or edi, edx
mov dword [esi + 0x1c], edx
or ecx, ebx
or ecx, edi
sete byte [esi + 0x18]
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 + 8]
xor eax, 0x1f
xor edi, 0x1f
add eax, 0x20
cmp dword [esi + 8], 0
cmovne eax, edi
mov edi, 0
add eax, 0x40
or ebx, edx
mov ebx, 0
mov edx, 0
cmovne eax, ecx
mov ecx, 0x79
sub ecx, eax
mov eax, 0x7f
sbb ebx, ebx
sbb edi, edi
sbb edx, edx
cmp eax, ecx
mov eax, 0
mov dword [esi + 0x28], edi
sbb eax, ebx
mov eax, 0
sbb eax, edi
mov eax, 0
mov edi, 0
sbb eax, edx
setb al
or al, byte [esi + 0x18]
mov eax, dword [esi + 8]
cmovne eax, edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
cmovne eax, edi
mov dword [esi + 0x20], eax
jne 0x49c85b
mov eax, ecx
mov dword [esi + 0x24], ecx
mov ecx, ebx
xor eax, 0x7f
or ecx, edx
or eax, dword [esi + 0x28]
or ecx, eax
mov eax, ebx
mov ebx, dword [esi + 0x10]
je 0x49ca17
mov ecx, dword [esi + 4]
mov dword [esi + 0xb0], ecx
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 8]
mov dword [esi + 0xb4], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0x1c]
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 + 0x24]
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 + 0x34], ebx
mov dword [esi + 0x38], 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, ebx
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x14], edi
add ebx, 1
adc dword [esi + 0x2c], 0
adc dword [esi + 0x28], 0
adc edx, 0
jae 0x49c863
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
jmp 0x49c9ff
jmp 0x49ca1d
or eax, ebx
jmp 0x49c5e2
mov ebx, dword [esi + 0x10]
jmp 0x49ca17
or dword [esi + 0x38], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x88], eax
mov eax, dword [esi + 0x1c]
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, ebx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ebx
mov ch, bl
shr al, 3
and ch, 7
and al, 0xf
mov cl, ch
movzx eax, al
mov ebx, dword [esi + eax + 0x88]
mov edi, dword [esi + eax + 0x8c]
mov dword [esi + 0x48], edx
mov edx, ebx
add ebx, ebx
shrd edx, edi, cl
mov dword [esi + 4], edx
mov edx, dword [esi + eax + 0x84]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0xc]
shr edx, cl
not cl
shl ebx, cl
mov cl, ch
or ebx, edx
mov edx, dword [esi + 0xc]
shr edi, cl
mov dword [esi + 8], ebx
mov ebx, dword [esi + 0x28]
mov eax, dword [esi + eax + 0x80]
mov dword [esi + 0x18], edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0xc], 0
mov dword [esi + 0x1c], 0
shrd eax, edx, cl
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x34]
nop dword [eax]
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edi
mov edi, dword [esi + 4]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 0x44]
shld dword [esi + 0x18], edi, 1
shld edi, edx, 1
shld edx, ebx, 1
shld ebx, eax, 1
mov dword [esi + 8], edx
mov edx, dword [esi + 0x38]
mov dword [esi + 4], edi
mov edi, dword [esi + 0xc]
mov dword [esi + 0xc], 0
shld eax, edx, 1
or eax, edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x14]
shld edx, eax, 1
shld eax, ecx, 1
add ecx, ecx
or ecx, dword [esi + 0x1c]
or edx, edi
or eax, edi
mov edi, dword [esi + 0x2c]
mov dword [esi + 0x38], edx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ecx
mov ecx, 0x63
cmp ecx, ebx
mov ecx, 0
sbb ecx, dword [esi + 8]
mov ecx, 0
sbb ecx, dword [esi + 4]
mov ecx, 0
sbb ecx, edx
sar ecx, 0x1f
mov eax, ecx
and ecx, 0x64
and eax, 1
sub ebx, ecx
sbb dword [esi + 8], 0
mov dword [esi + 0x1c], eax
mov eax, edx
mov edx, dword [esi + 0x24]
mov dword [esi + 0x44], ebx
mov ebx, dword [esi + 0x28]
sbb dword [esi + 4], 0
sbb eax, 0
add edx, 0xffffffff
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x48]
adc edi, 0xffffffff
mov dword [esi + 0x24], edx
adc ebx, 0xffffffff
mov ecx, edi
adc eax, 0xffffffff
or edx, ebx
or ecx, eax
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x34]
or edx, ecx
mov ecx, dword [esi + 0x20]
jne 0x49c930
mov eax, dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
shld eax, ecx, 1
add ecx, ecx
or eax, dword [esi + 0xc]
or ecx, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
mov edi, dword [esi + 0x20]
mov eax, 0
neg edi
sbb eax, dword [esi + 0x14]
cmp dword [esi + 0x3c], 0xffffff9d
sbb dword [esi + 0x58], 0xffffffff
sbb edx, 0x31
sbb ecx, 0
mov ecx, 0x80000000
cmovb ecx, eax
mov eax, 0
cmovae edi, eax
mov dword [esi + 0x64], ecx
lea ecx, [esi + 0x60]
mov dword [esi + 0x60], edi
mov eax, dword [0x537044]
push ecx
push 0
mov edi, dword [esi + 0x30]
push edi
push dword [esi + 0x40]
call eax
test eax, eax
mov eax, 0
xchg byte [edi], al
je 0x49ca82
cmp al, 1
jne 0x49ca82
mov eax, dword [0x537044]
push 0
push 0
push dword [esi + 0x30]
push dword [esi + 0x40]
call eax
lock dec dword [ebx]
jne 0x49ca8e
mov ecx, ebx
call fcn.00498d00
mov eax, dword [esi + 0xc8]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.use_of_std::thread::current___is_not_possible_after_the_threads_local_data_has_been_destroyed
mov edx, 0x5e
push 0x5282c0
call fcn.004e8d40
add esp, 4
jmp 0x49cb07
lea edx, [esi + 0x5c]
lea ecx, [esi + 0x78]
mov dword [esi + 0x60], 0x529d94
mov dword [esi + 0x64], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x10], ebx
mov dword [esi + 0x5c], eax
mov dword [esi + 0xd0], 1
mov dword [esi + 0x78], edx
mov dword [esi + 0x68], ecx
lea ecx, [esi + 0x60]
mov edx, 0x529dcc
mov dword [esi + 0x7c], fcn.00409280
mov dword [esi + 0x6c], 1
call fcn.004e88e0
ud2