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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov esi, esp
mov edi, ecx
mov eax, dword [0x72a00c]
xor eax, ebp
mov dword [esi + 0x98], eax
test byte [0x72bb00], 0x19
jne 0x66790d
mov ebx, dword [edi + 0x38]
test ebx, ebx
jne 0x667adc
mov ecx, dword [edi + 0x2c]
push edi
call fcn.00569330
call fcn.0055b870
test al, al
mov dword [esi + 0x10], edi
je 0x667ac2
mov ecx, dword [edi + 0x30]
call fcn.00664800
test al, al
jne 0x667af4
mov edi, dword [edi + 0x3c]
lea ecx, [esi + 0x34]
mov dword [ecx], 0xffffffff
call fcn.00535860
test edi, edi
je 0x667ad0
lea ebx, [esi + 0x70]
push 2
push ebx
call fcn.0055bb30
add esp, 8
lea ecx, [esi + 0x34]
push ebx
call fcn.00535870
mov ecx, ebx
call fcn.0063d730
mov al, 1
mov dword [esi + 0x1c], eax
test byte [0x72bb00], 0x19
jne 0x6679c9
test byte [0x72bab8], 0x19
mov ebx, dword [esi + 0x10]
je 0x6678db
call fcn.00631de0
mov ecx, dword [ebx + 0x2c]
lea eax, [ebx + 0x20]
mov dword [esi + 0x14], eax
push eax
call fcn.00667270
test byte [0x72bb00], 0x19
jne 0x667a21
mov dword [esi + 0x20], 0
lea edi, [esi + 0x78]
mov dword [esi + 8], 0
jmp 0x667b1b
lea ebx, [esi + 0x70]
push ebx
call fcn.006339f0
add esp, 4
call fcn.00633d60
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 8
mov dword [esp + 8], str.WorkerThread_born
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x49
call fcn.00632440
add esp, 0x30
test byte [0x72bb00], 0x19
je 0x66784d
lea ebx, [esi + 0x70]
push ebx
call fcn.006339f0
add esp, 4
call fcn.00633d60
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.WorkerThread_active
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x42
call fcn.00632440
add esp, 0x30
jmp 0x66784d
lea edi, [esi + 0x70]
push edi
call fcn.006339f0
add esp, 4
call fcn.00633d60
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.WorkerThread_active
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x45
call fcn.00632440
add esp, 0x30
jmp 0x6678ca
mov eax, dword [0x72f0dc]
mov dword [esi + 8], eax
mov eax, ebx
mov ebx, dword [0x72f0d8]
xor ebx, eax
lea edi, [esi + 0x70]
mov dword [edi + 0xc], fcn.006367d0
mov dword [edi + 0x10], 0x70a688
push 8
call fcn.0066d870
add esp, 4
mov ecx, dword [esi + 8]
mov dword [eax + 4], ecx
mov dword [eax], ebx
mov dword [edi + 4], eax
xor eax, eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x20], 0
mov dword [esi + 0x58], eax
sub esp, 0x1c
movq xmm0, qword [esi + 0x58]
movq qword [esp + 0x10], xmm0
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], 0x708ac0
mov dword [esp + 8], str.WorkerThread_active
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x42
call fcn.00530ae0
add esp, 0x1c
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x667aba
mov edi, dword [esi + 0x74]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
mov ebx, dword [esi + 0x10]
jmp 0x6678fe
lea ecx, [esi + 0x34]
mov dword [ecx], 0xffffffff
call fcn.00535860
mov dword [esi + 0x1c], 0
jmp 0x6678bd
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [esi + 8], ecx
call dword [section..00cfg]
mov ecx, ebx
call dword [esi + 8]
jmp 0x667858
lea ecx, [esi + 0x34]
mov dword [ecx], 0xffffffff
call fcn.00535860
jmp 0x66789a
test bl, bl
mov ebx, dword [esi + 0x10]
jne 0x6680c0
movzx eax, byte [ebx + 0x28]
test al, al
jne 0x6680c0
movzx eax, byte [ebx + 0x44]
test al, al
jne 0x6680c0
mov ecx, dword [ebx + 0x30]
call fcn.00664120
test al, al
jne 0x6680c0
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x70], xmm0
movdqa xmmword [esi + 0x80], xmm0
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x90], 0xffffffff
mov byte [esi + 0x70], 0
pxor xmm0, xmm0
movdqu xmmword [edi], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
cmp byte [esi + 0x1c], 0
je 0x667ba3
sub esp, 8
movq xmm0, qword [0x7147d8]
movq qword [esp], xmm0
mov ecx, edi
call fcn.0065bb00
mov byte [esi + 0x70], 1
mov ecx, dword [ebx + 0x30]
call fcn.00664800
test al, al
jne 0x66811f
mov edi, dword [ebx + 0x3c]
cmp dword [ebx + 0x40], edi
jne 0x6681e0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x30], 0xffffffff
mov ecx, dword [ebx + 0x2c]
push ebx
lea edi, [esi + 0x2c]
push edi
call fcn.00662640
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x667c95
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
push eax
call fcn.00627d80
add esp, 4
mov dword [esi + 8], esp
mov eax, dword [ebx + 0x30]
mov dword [esi + 0xc], eax
sub esp, 0xc
mov eax, edi
mov edi, esp
lea ecx, [edi + 4]
push eax
call fcn.00665820
lea ebx, [esi + 0x58]
mov dword [edi], ebx
mov ecx, dword [esi + 0xc]
call fcn.00664220
mov esp, dword [esi + 8]
lea ecx, [esi + 0x2c]
push ebx
call fcn.006658f0
mov ecx, ebx
call fcn.00665850
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x58], eax
push ebx
call fcn.00627d80
add esp, 4
mov edi, esp
mov eax, dword [esi + 0x10]
mov ebx, dword [eax + 0x2c]
sub esp, 8
mov ecx, esp
lea eax, [esi + 0x2c]
push eax
call fcn.00665820
mov ecx, ebx
call fcn.00663050
mov esp, edi
cmp dword [esi + 0x2c], 0
jne 0x6681f1
mov ecx, dword [esi + 0x14]
call fcn.00633e50
mov al, 1
xor ebx, ebx
lea edi, [esi + 0x78]
lea ecx, [esi + 0x2c]
mov dword [esi + 8], eax
call fcn.00665850
cmp byte [esi + 0x70], 0
je 0x667b10
mov ecx, edi
call fcn.0065bd30
jmp 0x667b10
mov al, byte [ebx + 0x28]
mov ecx, ebx
mov bl, 1
test al, al
lea edi, [esi + 0x78]
jne 0x6681f7
mov al, byte [ecx + 0x44]
test al, al
jne 0x6681f7
mov ecx, dword [ecx + 0x30]
call fcn.00664120
test al, al
jne 0x6681f4
test byte [esi + 8], 1
mov edi, dword [esi + 0x10]
je 0x667f9b
test byte [0x72bb00], 0x19
mov ebx, 0xffffffff
jne 0x667fa8
test byte [0x72bab8], 0x19
jne 0x667f81
cmp byte [esi + 0x70], 0
je 0x667d00
lea ecx, [esi + 0x78]
call fcn.0065bd30
mov byte [esi + 0x70], 0
mov ecx, dword [edi + 0x2c]
mov eax, dword [ecx]
cmp dword [eax + 0x18], 0x667270
jne 0x667f8b
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
lea eax, [esi + 0x38]
push eax
call fcn.006635b0
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x3c]
mov edx, 0xf4240
cmp ebx, edx
mov eax, 0xf4240
cmovb eax, ebx
test edi, edi
mov ecx, 0
cmovns edi, ecx
cmovns ebx, edx
cmove ebx, eax
mov eax, dword [0x72dff4]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x73ed3c]
cmp ecx, dword [eax + 4]
jg 0x6681a2
mov dword [esi + 8], edi
cmp byte [0x73ed38], 0
je 0x668202
xor edi, edi
dec edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
lea eax, [esi + 0x58]
push eax
call fcn.00635c90
add esp, 4
mov eax, dword [0x73ed48]
mov ecx, dword [0x72dff4]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x66805b
mov dword [esi + 0x54], edi
mov dword [esi + 0x50], edi
mov eax, edi
add eax, ebx
mov ecx, 0x7fffffff
mov edx, dword [esi + 8]
adc ecx, edx
add eax, 2
adc ecx, 0
cmp eax, 2
mov edi, dword [esi + 0x58]
sbb ecx, 0
mov eax, dword [esi + 0x5c]
jb 0x66820a
add edi, ebx
adc eax, edx
seto bl
mov edx, eax
sar edx, 0x1f
test bl, bl
lea ecx, [edx - 0x80000000]
cmove edx, edi
test bl, bl
cmove ecx, eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ecx
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
sub esp, 0x14
mov dword [esp + 0x10], eax
movq xmm0, qword [esi + 0x40]
movq qword [esp + 4], xmm0
lea eax, [esi + 0x50]
mov dword [esp], eax
mov dword [esp + 0xc], 0xf4240
lea ecx, [esi + 0x48]
call fcn.00635cb0
mov eax, dword [esi + 0x58]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x5c]
mov dword [esi + 8], ecx
mov edi, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
sub edi, eax
sbb edx, ecx
seto al
mov byte [esi + 0x18], al
mov ecx, edx
sar ecx, 0x1f
test al, al
cmovne edi, ecx
mov ebx, 0x80000000
xor ecx, ebx
mov eax, dword [0x73ed40]
sub eax, dword [esi + 0xc]
mov ebx, dword [0x73ed44]
sbb ebx, dword [esi + 8]
mov dword [esi + 0xc], ebx
seto byte [esi + 8]
cmp byte [esi + 0x18], 0
cmove ecx, edx
mov edx, ebx
sar edx, 0x1f
cmp byte [esi + 8], 0
cmovne eax, edx
mov ebx, 0x80000000
xor edx, ebx
mov ebx, eax
cmp byte [esi + 8], 0
cmove edx, dword [esi + 0xc]
mov eax, edx
cmp edi, ebx
mov edx, ebx
cmova edx, edi
cmp ecx, eax
cmovg ebx, edi
mov edi, eax
cmove ebx, edx
cmovg edi, ecx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], edi
sub esp, 8
movq xmm0, qword [esi + 0x58]
movq qword [esp], xmm0
mov ecx, dword [esi + 0x14]
call fcn.006365f0
test al, al
mov eax, edi
lea edi, [esi + 0x78]
je 0x668003
xor ebx, ebx
test byte [0x72bb00], 0x19
mov eax, 0
lea ecx, [esi + 0x2c]
je 0x667c77
mov edi, dword [0x72f0d8]
xor edi, dword [esi + 0x10]
mov ebx, dword [0x72f0dc]
xor ebx, dword [esi + 0x20]
mov dword [esi + 0x64], fcn.006367d0
mov dword [esi + 0x68], 0x70a688
push 8
call fcn.0066d870
add esp, 4
mov dword [eax + 4], ebx
mov dword [eax], edi
mov dword [esi + 0x5c], eax
xor eax, eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
sub esp, 0x1c
movq xmm0, qword [esi + 0x50]
movq qword [esp + 0x10], xmm0
lea eax, [esi + 0x58]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0x708ac0
mov dword [esp + 8], str.WorkerThread_active
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x42
call fcn.00530ae0
add esp, 0x1c
mov eax, dword [esi + 0x68]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x667f78
mov edi, dword [esi + 0x5c]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
xor ebx, ebx
xor eax, eax
jmp 0x667c71
call fcn.00631de0
jmp 0x667cee
push dword [esi + 0x14]
call fcn.00667270
lea edi, [esi + 0x78]
jmp 0x667ed2
mov ecx, dword [edi + 0x2c]
call fcn.005696f0
jmp 0x667ccf
lea eax, [esi + 0x58]
push eax
call fcn.006339f0
add esp, 4
call fcn.00633d60
sub esp, 0x30
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ecx
lea edx, [esi + 0x58]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.WorkerThread_active
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x45
call fcn.00632440
add esp, 0x30
jmp 0x667ce1
mov dword [esi + 8], eax
call fcn.00655bd0
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
cmp ebx, eax
mov edx, dword [esi + 8]
sbb edx, ecx
jge 0x667ed2
mov dword [esi + 0xc], ebx
mov edx, eax
xor edi, edi
dec edi
xor edx, edi
mov ebx, 0x7fffffff
mov edi, ecx
xor edi, ebx
or edi, edx
je 0x66816f
jmp 0x668129
lea edi, [esi + 0x78]
sub esp, 8
movq xmm0, qword [esi + 0x50]
movq qword [esp], xmm0
mov ecx, dword [esi + 0x14]
call fcn.006365f0
jmp 0x667ed2
push 0x73ed48
call fcn.0066d917
add esp, 4
cmp dword [0x73ed48], 0xffffffff
jne 0x667dad
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edx, 0x3938700
add ecx, edx
adc eax, 0
seto byte [esi + 0xc]
mov edx, eax
sar edx, 0x1f
cmp byte [esi + 0xc], 0
cmovne ecx, edx
add edx, 0x80000000
cmp byte [esi + 0xc], 0
cmove edx, eax
mov dword [0x73ed40], ecx
mov dword [0x73ed44], edx
push 0x73ed48
call fcn.0066d98d
add esp, 4
jmp 0x667dad
mov ecx, dword [ebx + 0x2c]
push ebx
call fcn.00569680
mov edi, ebx
mov ebx, dword [ebx + 0x38]
test ebx, ebx
jne 0x66825e
mov ecx, dword [edi + 8]
mov dword [edi + 8], 0
test ecx, ecx
jne 0x668182
test byte [0x72bb00], 0x19
jne 0x668276
test byte [0x72bab8], 0x19
jne 0x668198
lea ecx, [esi + 0x34]
call fcn.0063d730
mov ecx, dword [esi + 0x98]
xor ecx, ebp
call fcn.0066e1f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 3
jmp 0x667bb6
xor edx, edx
dec edx
mov ebx, dword [esi + 0xc]
add edx, ebx
mov edi, 0x7fffffff
adc edi, dword [esi + 8]
add edx, 2
adc edi, 0
cmp edx, 2
sbb edi, 0
jb 0x66816f
sub eax, ebx
sbb ecx, dword [esi + 8]
seto bl
mov edx, ecx
sar edx, 0x1f
test bl, bl
cmovne eax, edx
add edx, 0x80000000
test bl, bl
cmove edx, ecx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
jmp 0x66803e
xor eax, eax
dec eax
mov dword [esi + 0x50], eax
mov eax, 0x7fffffff
mov dword [esi + 0x54], eax
jmp 0x66803e
lock dec dword [ecx + 4]
jne 0x6680e8
push 1
call fcn.00572650
jmp 0x6680e8
call fcn.00631de0
jmp 0x668102
push 0x73ed3c
call fcn.0066d917
add esp, 4
cmp dword [0x73ed3c], 0xffffffff
jne 0x667d67
push 0x72dcc4
call fcn.0063ede0
add esp, 4
mov byte [0x73ed38], al
push 0x73ed3c
call fcn.0066d98d
add esp, 4
jmp 0x667d67
push edi
call fcn.00558670
add esp, 4
mov dword [ebx + 0x40], edi
jmp 0x667bbf
int3
lea edi, [esi + 0x78]
lea ecx, [esi + 0x2c]
mov eax, dword [esi + 8]
jmp 0x667c77
mov edi, dword [esi + 8]
jmp 0x667eaa
mov dword [esi + 0xc], ebx
xor edx, edx
dec edx
mov ebx, edx
mov dword [esi + 0x24], edi
add ebx, edi
mov edi, 0x7fffffff
adc edi, eax
add ebx, 2
adc edi, 0
mov dword [esi + 0x18], edi
add edx, 1
mov ecx, 0x7fffffff
adc ecx, 0
mov dword [esi + 0x28], 0
xor edi, edi
inc edi
cmp edi, ebx
mov edi, dword [esi + 0x28]
sbb edi, dword [esi + 0x18]
jb 0x667df5
mov edi, dword [esi + 0x24]
xor edi, dword [esi + 0xc]
xor eax, dword [esi + 8]
or eax, edi
je 0x667df5
int3
mov eax, dword [ebx]
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
call dword [section..00cfg]
mov ecx, ebx
call dword [esi + 8]
jmp 0x6680d6
lea edi, [esi + 0x70]
push edi
call fcn.006339f0
add esp, 4
call fcn.00633d60
sub esp, 0x30
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.WorkerThread_active
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x45
call fcn.00632440
add esp, 0x30
test byte [0x72bb00], 0x19
je 0x6680f5
push edi
call fcn.006339f0
add esp, 4
call fcn.00633d60
sub esp, 0x30
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x2c], 8
mov dword [esp + 8], str.WorkerThread_dead
mov dword [esp + 4], 0x72bb00
mov dword [esp], 0x49
call fcn.00632440
add esp, 0x30
jmp 0x6680f5