Function at 0x657070
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x87e969
mov eax, dword fs:[0]
push eax
mov eax, 0x29fc
call fcn.00807150
mov eax, dword [0x8ce6f4]
xor eax, esp
mov dword [esp + 0x29f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x8ce6f4]
xor eax, esp
push eax
lea eax, [esp + 0x2a10]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
push 0x444300
mov dword [esp + 0x2a1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x6573b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4442ec
push ebp
call esi
push 0x4442dc
push ebp
mov edi, eax
call esi
push 0x4442cc
push ebp
mov dword [esp + 0x24], eax
call esi
push 0x4442bc
push ebp
mov dword [esp + 0x1c], eax
call esi
push 0x4442a4
mov ebx, eax
push ebp
mov dword [esp + 0x28], ebx
call esi
mov esi, eax
test edi, edi
je 0x6573b0
cmp dword [esp + 0x1c], 0
je 0x6573b0
cmp dword [esp + 0x14], 0
je 0x6573b0
test ebx, ebx
je 0x6573b0
test esi, esi
je 0x6573b0
push 0x9c
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00802690
mov eax, dword [esp + 0x2a2c]
mov dword [esp + 0x40], eax
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x291c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00652f20
add esp, 0x1c
test eax, eax
je 0x657183
mov byte [esp + 0x2908], 0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x2908]
xor ebx, ebx
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], ebx
call edi
mov edi, eax
cmp edi, ebx
jne 0x6571c1
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x2a20]
call fcn.004a8c20
jmp 0x6573e1
push 0x652c70
push edi
call esi
lea eax, [esp + 0xcc]
push eax
push edi
mov dword [esp + 0x1900], ebx
call dword [esp + 0x1c]
test eax, eax
jne 0x657394
lea ecx, [esp + 0x10cc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004a8f10
push 4
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a20], 1
call fcn.004ac4f0
mov eax, dword [eax]
push 0x40dd04
push eax
call fcn.00801f5b
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
mov byte [esp + 0x2a18], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x65724b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x65729b
push 0
push 0
push 0
push edi
call dword [esp + 0x30]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x2a18], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x657281
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xcc]
push ecx
push edi
call dword [esp + 0x1c]
test eax, eax
je 0x6571e5
jmp 0x657394
xor esi, esi
mov dword [esp + 0x14], esi
mov edx, dword [esp + 0x18d8]
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a1c], 3
call fcn.004cd4f0
test al, al
jne 0x6572f1
push edi
call dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
push eax
call fcn.007c8563
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004a8c20
lea ecx, [esp + 0x2a20]
call fcn.004a8c20
jmp 0x6573e1
mov ebx, dword [esp + 0x14]
push esi
push esi
push 1
push edi
mov dword [0x8d7a30], ebx
mov dword [0x8d7a34], esi
call dword [esp + 0x30]
test eax, eax
je 0x65731d
push edi
call dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
jmp 0x6572cf
mov esi, dword [esp + 0x28]
mov edx, dword [esi + 0x114]
mov eax, dword [esp + 0x18d8]
mov edx, dword [edx + 0x30]
add esi, 0x114
push 0
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 0
push 0
push 0
mov ecx, esi
call edx
mov ecx, dword [esp + 0x18d8]
mov eax, dword [esi]
mov edx, dword [eax + 0x3c]
push ecx
push ebx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push 0
push 0
push 0
mov ecx, esi
call edx
xor eax, eax
push ebx
mov dword [0x8d7a30], eax
mov dword [0x8d7a34], eax
call fcn.007c8563
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a18], 0
call fcn.004a8c20
push edi
call dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x2a20]
call fcn.004a8c20
mov al, 1
jmp 0x6573e3
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x2a20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x2a18], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6573e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x2a10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x29f8]
xor ecx, esp
call fcn.0080262b
add esp, 0x2a08
ret 4