Function at 0x5b80dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x5b80e5
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5b88ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 5
xor eax, eax
mov dword [esi], eax
mov eax, ebx
call fcn.00446114
test al, al
je 0x5b88b0
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.005b748c
test al, al
je 0x5b813c
mov dword [ebp - 0x10], 3
jmp 0x5b88b7
xor edx, edx
push ebp
push 0x5b889d
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0040b35c
cmp dword [ebp - 0x28], 0
jbe 0x5b8170
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402ec0
mov eax, dword [ebp - 0x28]
call fcn.00402e50
mov byte [ebp - 0x29], 1
xor edx, edx
push ebp
push 0x5b888c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, ebx
call fcn.00405538
push eax
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5b8838
xor eax, eax
push ebp
push 0x5b8831
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0x5b8900
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x5b841d
push 0x5b8910
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x3c], eax
push 0x5b8924
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x40], eax
push 0x5b8940
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x44], eax
push 0x5b895c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
push 0x5b8974
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call dword [ebp - 0x38]
lea edx, [ebp - 0x30]
mov eax, 0x5b8990
call fcn.005e59d4
push dword [ebp - 0x30]
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x14]
call fcn.00405254
push dword [ebp - 0x68]
push 0x5b89ac
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x18]
call fcn.00405254
push dword [ebp - 0x6c]
push 0x5b89b8
push 0x5b89c4
lea eax, [ebp - 0x64]
mov edx, 6
call fcn.004053f8
mov edx, dword [ebp - 0x64]
mov eax, 0x5b8990
call fcn.005e64e0
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0x14]
call fcn.0040b9d8
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x20]
call fcn.005b7444
test al, al
je 0x5b82b0
mov dword [ebp - 0x10], 4
jmp 0x5b87e1
push 1
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
call fcn.0040b9d8
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.005b7130
mov dword [0x5fd568], eax
cmp dword [0x5fd568], 0
je 0x5b87e1
push 0x5b89c8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x28], eax
push 0x5b89d8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x2c], eax
push 0x5b89e8
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x30], eax
push 0x5b89f4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x40], eax
cmp dword [ebp + 8], 0
jbe 0x5b8356
mov eax, dword [0x5fd568]
cmp dword [eax + 0x40], 0
je 0x5b8356
mov edx, dword [ebp + 8]
mov eax, dword [0x5fd568]
call fcn.005bc8d8
push 0x5b8a04
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x44], eax
cmp dword [ebp - 0x40], 0
je 0x5b837b
mov eax, fcn.005b7850
call dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0
je 0x5b8389
mov eax, fcn.005b78b0
call dword [ebp - 0x44]
cmp dword [ebp - 0x48], 0
je 0x5b8397
mov eax, fcn.005b7f2c
call dword [ebp - 0x48]
cmp dword [ebp - 0x4c], 0
je 0x5b83ef
mov eax, fcn.005b77f8
call dword [ebp - 0x4c]
push 0x5b8a0c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
mov eax, dword [0x5fd568]
mov dword [eax + 0x38], ebx
test ebx, ebx
jne 0x5b83d8
push 0x5b8a20
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x34], eax
push 0x5b8a30
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x5b840c
push fcn.005e7624
mov ecx, fcn.005e75c0
mov edx, fcn.005b784c
mov eax, fcn.005b7770
call dword [ebp - 0x3c]
mov eax, dword [0x5fd568]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5b87e1
mov byte [ebp - 0x31], 0
push ebp
mov eax, 0x5b8a48
call fcn.005b80ac
pop ecx
test al, al
je 0x5b8437
mov byte [ebp - 0x31], 1
jmp 0x5b844b
push ebp
mov eax, 0x5b8a64
call fcn.005b80ac
pop ecx
test al, al
je 0x5b844b
mov byte [ebp - 0x31], 2
cmp byte [ebp - 0x31], 0
jbe 0x5b87da
movzx edi, byte [ebp - 0x31]
mov ecx, dword [edi*4 + 0x5fd568]
lea eax, [ebp - 0x78]
mov edx, 0x5b8a7c
call fcn.00405384
mov eax, dword [ebp - 0x78]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x50], eax
mov ecx, dword [edi*4 + 0x5fd570]
lea eax, [ebp - 0x7c]
mov edx, 0x5b8a98
call fcn.00405384
mov eax, dword [ebp - 0x7c]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x54], eax
mov ecx, dword [edi*4 + 0x5fd578]
lea eax, [ebp - 0x80]
mov edx, 0x5b8abc
call fcn.00405384
mov eax, dword [ebp - 0x80]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x58], eax
mov ecx, dword [edi*4 + 0x5fd580]
lea eax, [ebp - 0x84]
mov edx, 0x5b8ae0
call fcn.00405384
mov eax, dword [ebp - 0x84]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x5c], eax
mov ecx, dword [edi*4 + 0x5fd588]
lea eax, [ebp - 0x88]
mov edx, 0x5b8b00
call fcn.00405384
mov eax, dword [ebp - 0x88]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [ebp - 4]
lea edx, [ebp - 0x8c]
mov eax, dword [ebp - 0x14]
call fcn.0040b9d8
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x20]
call fcn.005b7444
test al, al
je 0x5b8571
mov dword [ebp - 0x10], 4
jmp 0x5b87e1
push 1
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x14]
call fcn.0040b9d8
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.005b7130
mov dword [0x5fd568], eax
cmp dword [0x5fd568], 0
je 0x5b87e1
mov ecx, dword [edi*4 + 0x5fd590]
lea eax, [ebp - 0x94]
mov edx, 0x5b8b1c
call fcn.00405384
mov eax, dword [ebp - 0x94]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x48], eax
mov ecx, dword [edi*4 + 0x5fd598]
lea eax, [ebp - 0x98]
mov edx, 0x5b8b34
call fcn.00405384
mov eax, dword [ebp - 0x98]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x4c], eax
mov ecx, dword [edi*4 + 0x5fd5a0]
lea eax, [ebp - 0x9c]
mov edx, 0x5b8b4c
call fcn.00405384
mov eax, dword [ebp - 0x9c]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x50], eax
mov ecx, dword [edi*4 + 0x5fd5a8]
lea eax, [ebp - 0xa0]
mov edx, 0x5b8b60
call fcn.00405384
mov eax, dword [ebp - 0xa0]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x60], eax
cmp dword [ebp + 8], 0
jbe 0x5b8695
mov eax, dword [0x5fd568]
cmp dword [eax + 0x60], 0
je 0x5b8695
mov edx, dword [ebp + 8]
mov eax, dword [0x5fd568]
call fcn.005bc8d8
xor ebx, ebx
mov bl, byte [ebp - 0x31]
mov ecx, dword [ebx*4 + 0x5fd5b0]
lea eax, [ebp - 0xa4]
mov edx, 0x5b8b7c
call fcn.00405384
mov eax, dword [ebp - 0xa4]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x64], eax
cmp dword [ebp - 0x54], 0
je 0x5b86dd
push 0x5b8008
call dword [ebp - 0x54]
cmp dword [ebp - 0x58], 0
je 0x5b86eb
push 0x5b8018
call dword [ebp - 0x58]
cmp dword [ebp - 0x5c], 0
je 0x5b86f9
push 0x5b802c
call dword [ebp - 0x5c]
cmp dword [ebp - 0x60], 0
je 0x5b87af
push 0x5b8050
call dword [ebp - 0x60]
mov ecx, dword [ebx*4 + 0x5fd5c8]
lea eax, [ebp - 0xa8]
mov edx, 0x5b8b90
call fcn.00405384
mov eax, dword [ebp - 0xa8]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov eax, dword [0x5fd568]
mov dword [eax + 0x58], edi
test edi, edi
jne 0x5b877a
mov ecx, dword [ebx*4 + 0x5fd5b8]
lea eax, [ebp - 0xac]
mov edx, 0x5b8bac
call fcn.00405384
mov eax, dword [ebp - 0xac]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x54], eax
mov ecx, dword [ebx*4 + 0x5fd5c0]
lea eax, [ebp - 0xb0]
mov edx, 0x5b8bc4
call fcn.00405384
mov eax, dword [ebp - 0xb0]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5fd568]
mov dword [edx + 0x5c], eax
cmp dword [ebp - 0x50], 0
je 0x5b87cc
push 0x5e769c
push 0x5e7688
push 0x5b7ff4
push 0x5b7fb8
call dword [ebp - 0x50]
mov eax, dword [0x5fd568]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5b87e1
mov dword [ebp - 0x10], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8870
cmp dword [ebp - 0x14], 0
je 0x5b87fd
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x18], 0
je 0x5b880c
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x1c], 0
je 0x5b881b
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x10], 0
je 0x5b8830
cmp dword [ebp - 8], 0
je 0x5b8830
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor edx, edx
push ebp
push 0x5b8855
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.00410948
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b8870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b8893
cmp byte [ebp - 0x29], 0
je 0x5b888b
mov eax, dword [ebp - 0x24]
call fcn.00402e50
ret
mov dword [ebp - 0x10], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b88f1
lea eax, [ebp - 0xb0]
mov edx, 0x14
call fcn.00405070
lea eax, [ebp - 0x30]
call fcn.0040504c
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405070
ret