Function at 0x5b1448
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x13
push 0
push 0
dec ecx
jne 0x5b1451
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 0x5b1bda
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.00445ce0
test al, al
je 0x5b1ba8
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.005b07f8
test al, al
je 0x5b14a7
mov dword [ebp - 0x10], 3
jmp 0x5b1baf
xor edx, edx
push ebp
push 0x5b1b95
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0040b2fc
cmp dword [ebp - 0x28], 0
jbe 0x5b14db
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 0x5b1b84
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 0x5b1b30
xor eax, eax
push ebp
push 0x5b1b29
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 0x5b1bf0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edi, eax
mov dword [ebp - 0x30], edi
test edi, edi
je 0x5b1733
push 0x5b1c00
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x34], eax
push 0x5b1c14
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x38], eax
push 0x5b1c30
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x3c], eax
push 0x5b1c4c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x40], eax
push 0x5b1c64
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call dword [ebp - 0x30]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.0040b978
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x20]
call fcn.005b07b0
test al, al
je 0x5b15c6
mov dword [ebp - 0x10], 4
jmp 0x5b1ad9
push 1
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x14]
call fcn.0040b978
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.005b049c
mov dword [0x5f5f98], eax
cmp dword [0x5f5f98], 0
je 0x5b1ad9
push 0x5b1c78
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x28], eax
push 0x5b1c88
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x2c], eax
push 0x5b1c98
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x30], eax
push 0x5b1ca4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x40], eax
cmp dword [ebp + 8], 0
jbe 0x5b166c
mov eax, dword [0x5f5f98]
cmp dword [eax + 0x40], 0
je 0x5b166c
mov edx, dword [ebp + 8]
mov eax, dword [0x5f5f98]
call fcn.005b5998
push 0x5b1cb4
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x44], eax
cmp dword [ebp - 0x38], 0
je 0x5b1691
mov eax, fcn.005b0bbc
call dword [ebp - 0x38]
cmp dword [ebp - 0x3c], 0
je 0x5b169f
mov eax, fcn.005b0c1c
call dword [ebp - 0x3c]
cmp dword [ebp - 0x40], 0
je 0x5b16ad
mov eax, fcn.005b1298
call dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0
je 0x5b1705
mov eax, fcn.005b0b64
call dword [ebp - 0x44]
push 0x5b1cbc
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
mov eax, dword [0x5f5f98]
mov dword [eax + 0x38], ebx
test ebx, ebx
jne 0x5b16ee
push 0x5b1cd0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x34], eax
push 0x5b1ce0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x3c], eax
cmp dword [ebp - 0x34], 0
je 0x5b1722
push fcn.005e06e4
mov ecx, fcn.005e0680
mov edx, fcn.005b0bb8
mov eax, fcn.005b0adc
call dword [ebp - 0x34]
mov eax, dword [0x5f5f98]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5b1ad9
mov byte [ebp - 0x2a], 0
push ebp
mov eax, 0x5b1cf8
call fcn.005b1418
pop ecx
test al, al
je 0x5b174d
mov byte [ebp - 0x2a], 1
jmp 0x5b1761
push ebp
mov eax, 0x5b1d14
call fcn.005b1418
pop ecx
test al, al
je 0x5b1761
mov byte [ebp - 0x2a], 2
cmp byte [ebp - 0x2a], 0
jbe 0x5b1ad2
movzx edi, byte [ebp - 0x2a]
mov ecx, dword [edi*4 + 0x5f5f98]
lea eax, [ebp - 0x64]
mov edx, 0x5b1d2c
call fcn.00405384
mov eax, dword [ebp - 0x64]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x48], eax
mov ecx, dword [edi*4 + 0x5f5fa0]
lea eax, [ebp - 0x68]
mov edx, 0x5b1d48
call fcn.00405384
mov eax, dword [ebp - 0x68]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x4c], eax
mov ecx, dword [edi*4 + 0x5f5fa8]
lea eax, [ebp - 0x6c]
mov edx, 0x5b1d6c
call fcn.00405384
mov eax, dword [ebp - 0x6c]
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 + 0x5f5fb0]
lea eax, [ebp - 0x70]
mov edx, 0x5b1d90
call fcn.00405384
mov eax, dword [ebp - 0x70]
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 + 0x5f5fb8]
lea eax, [ebp - 0x74]
mov edx, 0x5b1db0
call fcn.00405384
mov eax, dword [ebp - 0x74]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0x58], 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 - 0x78]
mov eax, dword [ebp - 0x14]
call fcn.0040b978
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x20]
call fcn.005b07b0
test al, al
je 0x5b1875
mov dword [ebp - 0x10], 4
jmp 0x5b1ad9
push 1
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.0040b978
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.005b049c
mov dword [0x5f5f98], eax
cmp dword [0x5f5f98], 0
je 0x5b1ad9
mov ecx, dword [edi*4 + 0x5f5fc0]
lea eax, [ebp - 0x80]
mov edx, 0x5b1dcc
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 edx, dword [0x5f5f98]
mov dword [edx + 0x48], eax
mov ecx, dword [edi*4 + 0x5f5fc8]
lea eax, [ebp - 0x84]
mov edx, 0x5b1de4
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 edx, dword [0x5f5f98]
mov dword [edx + 0x4c], eax
mov ecx, dword [edi*4 + 0x5f5fd0]
lea eax, [ebp - 0x88]
mov edx, 0x5b1dfc
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 edx, dword [0x5f5f98]
mov dword [edx + 0x50], eax
mov ecx, dword [edi*4 + 0x5f5fd8]
lea eax, [ebp - 0x8c]
mov edx, 0x5b1e10
call fcn.00405384
mov eax, dword [ebp - 0x8c]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x60], eax
cmp dword [ebp + 8], 0
jbe 0x5b198d
mov eax, dword [0x5f5f98]
cmp dword [eax + 0x60], 0
je 0x5b198d
mov edx, dword [ebp + 8]
mov eax, dword [0x5f5f98]
call fcn.005b5998
xor ebx, ebx
mov bl, byte [ebp - 0x2a]
mov ecx, dword [ebx*4 + 0x5f5fe0]
lea eax, [ebp - 0x90]
mov edx, 0x5b1e2c
call fcn.00405384
mov eax, dword [ebp - 0x90]
call fcn.00405538
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov edx, dword [0x5f5f98]
mov dword [edx + 0x64], eax
cmp dword [ebp - 0x4c], 0
je 0x5b19d5
push 0x5b1374
call dword [ebp - 0x4c]
cmp dword [ebp - 0x50], 0
je 0x5b19e3
push 0x5b1384
call dword [ebp - 0x50]
cmp dword [ebp - 0x54], 0
je 0x5b19f1
push 0x5b1398
call dword [ebp - 0x54]
cmp dword [ebp - 0x58], 0
je 0x5b1aa7
push 0x5b13bc
call dword [ebp - 0x58]
mov ecx, dword [ebx*4 + 0x5f5ff8]
lea eax, [ebp - 0x94]
mov edx, 0x5b1e40
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 edi, eax
mov eax, dword [0x5f5f98]
mov dword [eax + 0x58], edi
test edi, edi
jne 0x5b1a72
mov ecx, dword [ebx*4 + 0x5f5fe8]
lea eax, [ebp - 0x98]
mov edx, 0x5b1e5c
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 [0x5f5f98]
mov dword [edx + 0x54], eax
mov ecx, dword [ebx*4 + 0x5f5ff0]
lea eax, [ebp - 0x9c]
mov edx, 0x5b1e74
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 [0x5f5f98]
mov dword [edx + 0x5c], eax
cmp dword [ebp - 0x48], 0
je 0x5b1ac4
push 0x5e075c
push 0x5e0748
push 0x5b1360
push 0x5b1324
call dword [ebp - 0x48]
mov eax, dword [0x5f5f98]
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x5b1ad9
mov dword [ebp - 0x10], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b1b68
cmp dword [ebp - 0x14], 0
je 0x5b1af5
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x18], 0
je 0x5b1b04
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x1c], 0
je 0x5b1b13
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_GlobalFree
cmp dword [ebp - 0x10], 0
je 0x5b1b28
cmp dword [ebp - 8], 0
je 0x5b1b28
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor edx, edx
push ebp
push 0x5b1b4d
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004108e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5b1b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5b1b8b
cmp byte [ebp - 0x29], 0
je 0x5b1b83
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 0x5b1be1
lea eax, [ebp - 0x9c]
mov edx, 0x11
call fcn.00405070
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405070
ret