Function at 0x582b28
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040512c
xor eax, eax
push ebp
push 0x582d8e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x582d6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
cmp dword [0x977dfc], 0
je 0x582b7d
cmp dword [0x977dfc], 1
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x582d78
mov byte [ebp - 6], 1
mov dword [0x977dfc], 0xffffffff
mov eax, dword [ebp - 4]
mov edx, 0x582da8
call fcn.00405088
jne 0x582ba9
lea eax, [ebp - 4]
mov edx, 0x582db4
call fcn.00404d14
jmp 0x582bd4
mov eax, dword [ebp - 4]
mov edx, 0x582dcc
call fcn.00405088
jne 0x582bc7
lea eax, [ebp - 4]
mov edx, 0x582dd8
call fcn.00404d14
jmp 0x582bd4
lea eax, [ebp - 4]
mov edx, 0x582df0
call fcn.00404d14
mov eax, dword [ebp - 4]
call fcn.0040513c
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x977df8], eax
cmp dword [0x977df8], 0
je 0x582d64
xor eax, eax
push ebp
push 0x582d20
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x582e00
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed44], ebx
test ebx, ebx
jne 0x582c22
mov byte [ebp - 6], 0
push 0x582e18
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed48], ebx
test ebx, ebx
jne 0x582c42
mov byte [ebp - 6], 0
push 0x582e30
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed4c], ebx
test ebx, ebx
jne 0x582c62
mov byte [ebp - 6], 0
push 0x582e48
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed50], ebx
test ebx, ebx
jne 0x582c82
mov byte [ebp - 6], 0
push 0x582e5c
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed54], ebx
test ebx, ebx
jne 0x582ca2
mov byte [ebp - 6], 0
push 0x582e6c
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed58], ebx
test ebx, ebx
jne 0x582cc2
mov byte [ebp - 6], 0
push 0x582e7c
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed5c], ebx
test ebx, ebx
jne 0x582ce2
mov byte [ebp - 6], 0
push 0x582e90
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
mov dword [0x98ed60], ebx
test ebx, ebx
jne 0x582d02
mov byte [ebp - 6], 0
cmp byte [ebp - 6], 0
je 0x582d16
mov byte [ebp - 5], 1
mov dword [0x977dfc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x582d2a
cmp byte [ebp - 6], 0
jne 0x582d64
xor eax, eax
push ebp
push 0x582d53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x977df8]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x582d5d
xor eax, eax
mov dword [0x977df8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x582d78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x582d95
lea eax, [ebp - 4]
call fcn.00404c7c
ret