Function at 0x1005cde6
Capabilities:
Link many functions at runtime

Disassembly:
push 8
mov eax, 0x10166585
call fcn.10163eac
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
or dword [esi + 0xc], 0xffffffff
push ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x14]
push 0x1001b1a0
mov byte [esi + 0x10], bl
call fcn.1003ff5c
push ebx
push 0x1001b1c0
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 1
call fcn.1003ff5c
push dword [ebp + 8]
mov byte [ebp - 4], 2
lea edi, [esi + 0x2c]
mov ecx, edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.10045ea6
mov byte [ebp - 4], 3
mov word [esi + 0x48], bx
cmp dword [esi + 0x18], ebx
je 0x1005cfb6
cmp dword [esi + 0x20], ebx
je 0x1005cfb6
push 0x1001b1dc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x1005cea6
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
cmp eax, ebx
je 0x1005ceab
test byte [eax + 0x44], 2
je 0x1005ceab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b314
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x11
pop ecx
call fcn.100401e4
jmp 0x1005ceab
mov ebx, 0x101923c0
push 0x1001b1f0
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x1005ceee
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x1005ceee
test byte [eax + 0x44], 2
je 0x1005ceee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b314
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x12
pop ecx
call fcn.100401e4
push 0x1001b204
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
test eax, eax
jne 0x1005cf30
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x1005cf30
test byte [eax + 0x44], 2
je 0x1005cf30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b314
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x13
pop ecx
call fcn.100401e4
push 0x1001b21c
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
test eax, eax
jne 0x1005cf73
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x1005cf73
test byte [eax + 0x44], 2
je 0x1005cf73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b314
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x14
pop ecx
call fcn.100401e4
push 0x1001b234
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 8], eax
test eax, eax
jne 0x1005cfb6
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x1005cfb6
test byte [eax + 0x44], 2
je 0x1005cfb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x101923c0]
mov edx, 0x1001b314
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x15
pop ecx
call fcn.100401e4
mov ebx, dword [esi + 0x24]
xor ecx, ecx
test ebx, ebx
je 0x1005cfd4
cmp dword [esi + 0x28], ecx
je 0x1005cfd4
cmp dword [esi], ecx
je 0x1005cfd4
cmp dword [esi + 4], ecx
je 0x1005cfd4
mov al, 1
cmp dword [esi + 8], ecx
jne 0x1005cfd6
mov al, cl
mov byte [esi + 0x10], al
test al, al
je 0x1005d039
push ecx
push 0xffffffffffffffff
push ecx
push ecx
push 1
push ecx
push ecx
mov ecx, ebx
call dword [0x101a27b8]
call ebx
lea ebx, [esi + 0xc]
push eax
mov ecx, ebx
call fcn.1003fe5c
cmp dword [ebx], 0
je 0x1005d043
cmp dword [ebx], 0xffffffff
je 0x1005d043
mov byte [esi + 0x48], 1
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
cmp eax, ebx
je 0x1005d039
test byte [eax + 0x44], 4
je 0x1005d039
cmp dword [edi + 0x14], 8
jb 0x1005d025
mov edi, dword [edi]
push edi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x18
pop ecx
call fcn.10040085
mov eax, esi
call fcn.10163e7a
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005d058
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
mov ebx, 0x101923c0
cmp eax, ebx
je 0x1005d0ac
test byte [eax + 0x44], 1
je 0x1005d08e
cmp dword [edi + 0x14], 8
jb 0x1005d074
mov edi, dword [edi]
push esi
push edi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x16
pop ecx
call fcn.100400e3
mov eax, dword [0x101923c0]
cmp eax, ebx
je 0x1005d0ac
test byte [eax + 0x44], 1
je 0x1005d0ac
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b314
push dword [eax + 0x38]
push 0x17
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x10]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3