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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
lea edx, [ebp + 8]
mov eax, dword [0x64a040]
xor eax, ebp
mov dword [esi + 0x38], eax
mov dword [esi + 8], ecx
mov eax, dword [ecx + 8]
mov ebx, dword [eax + 0x20]
mov eax, dword [ebx]
mov edi, dword [eax + 8]
cmp edi, 0x57c2d0
jne 0x405991
mov dword [esi + 0x2c], 0x92
mov al, byte [0x64f4b6]
test al, al
jne 0x405a1a
cmp dword [edx + 0x2c], 0
mov ebx, dword [esi + 8]
jne 0x4057da
mov eax, dword [0x64d82c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x160]
test eax, eax
je 0x405797
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x40], ecx
mov eax, dword [eax + 8]
mov dword [edx + 0x3c], eax
mov eax, dword [0x64d82c]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x15c]
test eax, eax
je 0x4057da
mov ecx, dword [eax + 0xc]
mov dword [edx + 0x2c], ecx
movsd xmm0, qword [eax + 0x2c]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x38], ecx
movsd qword [edx + 0x30], xmm0
cmp byte [eax + 0x48], 0
jne 0x40598a
cmp dword [eax + 0x38], 0
setne al
mov byte [edx + 0x48], al
cmp dword [edx + 0x3c], 0
jne 0x4059bd
mov ecx, dword [edx + 0x5c]
test ecx, ecx
je 0x4057fe
xor eax, eax
inc eax
lock xadd dword [ecx + 4], eax
cmp eax, 0x7fffffff
je 0x4059ba
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], esp
mov al, byte [edx + 0x5a]
mov byte [esi + 7], al
push eax
sub esp, 0x38
mov dword [esi + 0x14], esp
mov dword [esi + 0x10], esp
sub esp, 0x30
mov edi, esp
xor eax, eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov eax, edi
add eax, 8
push 0x22b
push 0x63ca68
push str.PushOntoDelayedIncomingQueue
mov dword [esi + 0xc], eax
push eax
call fcn.0051dbb0
add esp, 0x10
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x6527ec]
bt ecx, eax
jb 0x4059ac
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x65a7ec], 1
push 0x90
call fcn.0057dc30
add esp, 4
xor ecx, ecx
inc ecx
mov dword [eax], ecx
mov dword [eax + 4], 0x445d30
mov dword [eax + 8], 0x46a8b0
mov dword [eax + 0xc], 0x57b700
mov dword [eax + 0x10], 0x445e20
mov dword [eax + 0x18], ebx
lea ebx, [ebp + 8]
movups xmm0, xmmword [ebx]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebx + 0x39]
movups xmmword [eax + 0x59], xmm0
movups xmm0, xmmword [ebx + 0x30]
movups xmmword [eax + 0x50], xmm0
movups xmm0, xmmword [ebx + 0x10]
movups xmm1, xmmword [ebx + 0x20]
movups xmmword [eax + 0x40], xmm1
movups xmmword [eax + 0x30], xmm0
mov edx, dword [ebx + 0x50]
mov dword [eax + 0x70], edx
xor edx, edx
mov dword [ebx + 0x50], edx
movzx ecx, word [ebx + 0x58]
mov word [eax + 0x78], cx
mov cl, byte [ebx + 0x5a]
mov byte [eax + 0x7a], cl
mov ecx, dword [ebx + 0x5c]
mov dword [eax + 0x7c], ecx
mov dword [ebx + 0x5c], edx
movsd xmm0, qword [ebx + 0x60]
movsd qword [eax + 0x80], xmm0
mov ecx, dword [ebx + 0x68]
mov dword [eax + 0x88], ecx
mov dword [ebx + 0x68], edx
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 0x8c], ecx
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
mov byte [edi + 0x20], dl
mov al, byte [esi + 7]
mov byte [edi + 0x24], al
mov dword [edi + 4], edx
mov edx, dword [esi + 0xc]
movups xmm0, xmmword [edx]
movups xmmword [ecx + 4], xmm0
mov edx, 0
mov byte [ecx + 0x14], dl
mov byte [ecx + 0x15], al
movsd xmm0, qword [edi + 0x18]
movsd qword [ecx + 0x18], xmm0
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x28], edx
mov eax, dword [esi + 0x1c]
mov dword [ecx + 0x2c], eax
mov dword [edi], edx
xor edx, edx
mov eax, dword [edi + 0x28]
mov dword [ecx + 0x30], eax
mov dword [edi + 0x28], edx
mov eax, dword [edi + 0x2c]
mov dword [ecx + 0x34], eax
mov esp, dword [esi + 0x10]
xor eax, eax
inc eax
mov dword [ecx + 0x38], eax
mov ecx, dword [esi + 8]
call fcn.00529270
mov esp, dword [esi + 0x18]
mov ecx, ebx
call fcn.00536280
mov ecx, dword [esi + 0x38]
xor ecx, ebp
call fcn.005810d5
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x70
mov al, 1
jmp 0x4057d7
mov ecx, edi
call dword [0x6445dc]
mov ecx, ebx
lea eax, [ebp + 8]
push eax
call edi
lea edx, [ebp + 8]
mov ebx, dword [esi + 8]
jmp 0x4057da
push ebx
call fcn.00506e00
add esp, 4
jmp 0x40586d
int3
mov al, byte [0x64f53a]
test al, al
je 0x4057e4
xor eax, eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea edi, [ebx + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x4059e7
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea edx, [esi + 0x20]
mov ecx, dword [esi + 8]
call fcn.005f17b0
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x405a0f
mov dword [esi + 0x28], 0x116
mov al, byte [0x64f53a]
test al, al
jne 0x405a5c
lea edx, [ebp + 8]
mov ebx, dword [esi + 8]
jmp 0x4057e4
mov ecx, dword [edx + 0x44]
xor ecx, dword [0x64e76c]
lea edx, [esi + 0x30]
mov dword [edx + 4], ecx
add ebx, 0x14c
xor ebx, dword [0x64e768]
movzx eax, al
mov dword [edx], ebx
lea ecx, [esi + 0x20]
mov dword [ecx], str.SequenceManager_PostTask
lea edi, [esi + 0x2c]
push edx
push 3
push ecx
push edi
push eax
call fcn.005e2380
lea edx, [ebp + 8]
add esp, 0x14
jmp 0x405769
movzx ecx, al
lea eax, [esi + 0x30]
lea edx, [esi + 0x20]
mov dword [eax], edx
lea edx, [ebp + 8]
mov dword [eax + 4], edx
lea edi, [esi + 0x2c]
mov dword [edi], str.task_posted_to_disabled_queue
lea edx, [esi + 0x28]
push eax
push edi
call fcn.005f2030
add esp, 8
jmp 0x405a0f