Function at 0x523c9c
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 0x523f83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi]
call fcn.005240ac
mov eax, dword [esi]
cmp byte [eax + 0x14], 0
jne 0x523cd1
mov eax, dword [esi]
call fcn.00522b28
mov eax, dword [esi]
cmp byte [eax + 0x14], 0
je 0x523f60
mov eax, dword [esi]
cmp byte [eax + 0x17], 1
jne 0x523e35
cmp dword [0x672fd4], 0
jne 0x523dd8
lea edx, [ebp - 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
call fcn.00655234
lea eax, [ebp - 8]
mov edx, 0x523f94
call fcn.00403ab4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadLibraryW
mov dword [0x672fd4], eax
cmp dword [0x672fd4], 0
je 0x523f60
push 0x523fb0
mov eax, dword [0x672fd4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x672fe0], eax
push 0x523fc4
mov eax, dword [0x672fd4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x672fe4], eax
push 0x523fdc
mov eax, dword [0x672fd4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x672fe8], eax
push 0x523fec
mov eax, dword [0x672fd4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x672fec], eax
push 0x524000
mov eax, dword [0x672fd4]
push eax
call sub.kernel32.dll_GetProcAddress
mov dword [0x672ff0], eax
cmp dword [0x672fe0], 0
je 0x523dc1
cmp dword [0x672fe4], 0
je 0x523dc1
cmp dword [0x672fe8], 0
je 0x523dc1
cmp dword [0x672fec], 0
je 0x523dc1
cmp dword [0x672ff0], 0
jne 0x523dd8
mov eax, dword [0x672fd4]
push eax
call sub.kernel32.dll_FreeLibrary
xor eax, eax
mov dword [0x672fd4], eax
jmp 0x523f60
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
cmp dword [eax + 0x24], 1
jne 0x523f60
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
call fcn.00654b48
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov edx, 0x524018
call fcn.0065512c
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
call fcn.00654b48
mov eax, dword [ebp - 0x10]
push eax
call dword [0x672fe0]
add esp, 8
mov edx, dword [esi]
mov dword [edx + 0x1c], eax
mov eax, dword [esi]
cmp dword [eax + 0x1c], 0
je 0x523f60
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 0x523e6b
mov edx, 0x524024
mov eax, dword [esi]
mov eax, dword [eax + 0x460]
call fcn.0064f3f0
mov eax, dword [esi]
mov eax, dword [eax + 0x460]
mov dl, 1
call fcn.00650140
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x523e8f
push 0
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, ebx
mov eax, dword [esi]
call fcn.00524128
dec ebx
cmp ebx, 0xffffffff
jne 0x523e79
mov eax, dword [esi]
mov eax, dword [eax + 0x24]
mov ebx, dword [eax + 0x24]
dec ebx
cmp ebx, 0
jl 0x523eb3
push 1
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
mov ecx, ebx
mov eax, dword [esi]
call fcn.00524128
dec ebx
cmp ebx, 0xffffffff
jne 0x523e9d
mov dl, 1
mov eax, dword [0x51fd00]
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.0064d604
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.0064e9dc
mov dl, 1
mov eax, dword [0x51fd00]
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.0064d604
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.0064e9dc
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov eax, dword [0x66e8a0]
mov eax, dword [eax]
call fcn.004827d0
mov ebx, eax
push ebp
mov eax, dword [ebx + 0xc]
call fcn.00523c04
pop ecx
push ebp
mov eax, dword [ebx + 0x10]
call fcn.00523c04
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523f8a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403298
lea eax, [ebp - 8]
call fcn.00403880
ret