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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
lea ecx, [ecx + 0xc]
lea eax, [esi + 0x10]
sub esp, 0x7c
mov dword [esp], eax
call fcn.005d66c0
lea ecx, [ebp - 0x60]
sub esp, 4
call fcn.0050ff60
lea eax, [ebp - 0x50]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp + 4], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x44], 0xffffffff
mov dword [esp], eax
call fcn.00556360
sub esp, 8
test al, al
jne 0x649545
mov ebx, dword [esi + 8]
mov byte [esi + 0x14], 1
test ebx, ebx
je 0x6494c4
mov dword [esi + 8], 0
mov ecx, ebx
call fcn.00556e00
mov dword [esp + 4], 0x1c
mov dword [esp], ebx
call fcn.006fcab0
mov eax, dword [ebp - 0x5c]
mov edx, dword [eax]
test edx, edx
je 0x649500
cmp edx, 0xffffffff
je 0x6494db
lock sub dword [eax], 1
mov eax, dword [ebp - 0x5c]
je 0x649500
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
test edx, edx
je 0x649521
cmp edx, 0xffffffff
je 0x6494f2
lock sub dword [eax], 1
mov eax, dword [ebp - 0x60]
je 0x649521
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 2
call fcn.004a4c50
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
test edx, edx
jne 0x6494e4
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004a4c50
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp], 0xa8
call fcn.00708230
mov edx, dword [ebp - 0x60]
mov dword [eax], 0
mov ebx, eax
lea eax, [eax + 4]
mov dword [ebx + 4], edx
mov dword [ebp - 0x74], eax
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x649720
mov edx, dword [ebp - 0x5c]
mov dword [ebx + 8], edx
mov eax, dword [edx]
add eax, 1
cmp eax, 1
ja 0x649730
movzx eax, word [ebp - 0x58]
mov word [ebx + 0xc], ax
movzx eax, word [ebp - 0x56]
mov word [ebx + 0xe], ax
movzx eax, word [ebp - 0x54]
mov word [ebx + 0x10], ax
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebx + 0x40], eax
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x44], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x18]
mov dword [esp + 4], eax
lea eax, [ebx + 4]
mov dword [esp], eax
call fcn.00529290
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x54]
mov dword [ebx + 0x54], 0x880f80
mov dword [ebx + 0x58], 0x880f80
mov dword [ebx + 0x5c], 0x880f80
mov dword [ebp - 0x78], eax
lea eax, [ebx + 0x80]
mov dword [ebx + 0x60], 0x880f80
mov dword [ebx + 0x64], 0x880f80
mov dword [ebx + 0x68], 0x880f80
mov dword [ebx + 0x6c], 0x880f80
mov dword [ebx + 0x70], 0x880f80
mov edi, eax
mov dword [ebx + 0x74], 0x880f80
mov dword [ebx + 0x78], 0x880f80
mov dword [ebx + 0x7c], 0x880f80
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 3
mov ecx, edi
call fcn.005d42e0
sub dword [ebp - 0x6c], 1
add edi, 4
mov eax, dword [ebp - 0x6c]
cmp eax, 0xffffffff
jne 0x64966d
movzx eax, byte [ebx + 0x94]
and dword [ebx + 0x90], 0xc0000000
mov dword [ebx + 0x98], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xa4], 0
and eax, 0xfffffffe
or eax, 2
mov byte [ebx + 0x94], al
mov eax, dword [ebx + 0x50]
test eax, eax
je 0x6496f4
pxor xmm0, xmm0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
mov dword [ebx + 0x48], 0
movups xmmword [ebx + 0x28], xmm0
movups xmmword [ebx + 0x38], xmm0
lea ecx, [ebp - 0x64]
mov dword [esp], ebx
call fcn.005d5bc0
mov edx, dword [ebp - 0x64]
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x64]
sub esp, 4
mov dword [esi + 0x10], edx
mov dword [ebp - 0x64], eax
call fcn.005d6560
jmp 0x6494c4
lock add dword [edx], 1
jmp 0x649573
lock add dword [edx], 1
jmp 0x649587