Function at 0x5215b8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x52189f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
call fcn.005219d0
mov eax, dword [esi]
cmp byte [eax + 0x14], 0
jne 0x5215ed
mov eax, dword [esi]
call fcn.0052032c
mov eax, dword [esi]
cmp byte [eax + 0x14], 0
je 0x52187c
mov eax, dword [esi]
cmp byte [eax + 0x17], 1
jne 0x521751
cmp dword [0x674dd8], 0
jne 0x5216f4
lea edx, [ebp - 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
call fcn.0065cfe0
lea eax, [ebp - 8]
mov edx, 0x5218b0
call fcn.00403ac4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x674dd8], eax
cmp dword [0x674dd8], 0
je 0x52187c
push 0x5218cc
mov eax, dword [0x674dd8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674de8], eax
push 0x5218e0
mov eax, dword [0x674dd8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674dec], eax
push 0x5218f8
mov eax, dword [0x674dd8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674df0], eax
push 0x521908
mov eax, dword [0x674dd8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674df4], eax
push 0x52191c
mov eax, dword [0x674dd8]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x674df8], eax
cmp dword [0x674de8], 0
je 0x5216dd
cmp dword [0x674dec], 0
je 0x5216dd
cmp dword [0x674df0], 0
je 0x5216dd
cmp dword [0x674df4], 0
je 0x5216dd
cmp dword [0x674df8], 0
jne 0x5216f4
mov eax, dword [0x674dd8]
push eax
call sub.kernel32.dll_FreeLibrary
xor eax, eax
mov dword [0x674dd8], eax
jmp 0x52187c
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
cmp dword [eax + 0x24], 1
jne 0x52187c
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
call fcn.0065c82c
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov edx, 0x521934
call fcn.0065ced8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
call fcn.0065c82c
mov eax, dword [ebp - 0x10]
push eax
call dword [0x674de8]
add esp, 8
mov edx, dword [esi]
mov dword [edx + 0x1c], eax
mov eax, dword [esi]
cmp dword [eax + 0x1c], 0
je 0x52187c
mov eax, dword [esi]
mov byte [eax + 0x15], 1
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
and eax, 0x3ff
cmp eax, 9
jne 0x521787
mov eax, dword [esi]
mov eax, dword [eax + 0x460]
mov edx, 0x521948
call fcn.006575b4
mov eax, dword [esi]
mov eax, dword [eax + 0x460]
mov dl, 1
call fcn.00658220
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x5217ab
push 0
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, ebx
mov eax, dword [esi]
call fcn.00521a4c
dec ebx
cmp ebx, 0xffffffff
jne 0x521795
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x5217cf
push 1
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, ebx
mov eax, dword [esi]
call fcn.00521a4c
dec ebx
cmp ebx, 0xffffffff
jne 0x5217b9
mov dl, 1
mov eax, dword [0x51d4e0]
call fcn.00402898
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0x2c], ebx
mov byte [ebx + 8], 1
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call fcn.006562a4
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov dword [eax + 0x824], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x2c]
mov byte [ebx + 0x28], 1
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
call fcn.00656c78
mov dl, 1
mov eax, dword [0x51d4e0]
call fcn.00402898
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0x30], ebx
mov byte [ebx + 8], 1
mov eax, dword [esi]
mov eax, dword [eax + 0x18]
call fcn.006562a4
mov ebx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov dword [eax + 0x824], ebx
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov byte [ebx + 0x28], 1
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
call fcn.00656c78
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov eax, dword [0x672010]
mov eax, dword [eax]
call fcn.0046e3f4
mov ebx, eax
push ebp
mov eax, dword [ebx + 0xc]
call fcn.00521520
pop ecx
push ebp
mov eax, dword [ebx + 0x10]
call fcn.00521520
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5218a6
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403298
lea eax, [ebp - 8]
call fcn.00403880
ret