Function at 0x100bcdd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x1017064]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], eax
call fcn.01008724
mov ecx, esi
call fcn.01009c61
cmp eax, 4
lea eax, [ebp - 0x1d0]
mov ecx, esi
push eax
jne 0x100bd9d
push 0
call fcn.0100b441
mov esi, eax
test esi, esi
jl 0x100c02f
lea ecx, [ebp - 0x1d0]
call fcn.010087de
cmp eax, 3
jl 0x100bd96
mov eax, dword [ebp - 0x1d0]
cmp word [eax], 0x5c
jne 0x100bd96
cmp word [eax + 2], 0x5c
jne 0x100bd96
push 2
pop edi
lea ecx, [ebp - 0x1d0]
call fcn.010087de
cmp eax, edi
jl 0x100bda4
mov eax, dword [ebp - 0x1d0]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x1d0]
je 0x100bd7e
inc edi
call fcn.010087de
cmp edi, eax
jle 0x100bd5f
jmp 0x100bda4
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x1d0]
push 0xffffffffffffffff
add eax, 4
push eax
call fcn.01008d0e
jmp 0x100bda2
mov esi, 0x80070057
jmp 0x100bda4
call fcn.0100939d
mov esi, eax
test esi, esi
jl 0x100c02f
and dword [ebp - 0x1c4], 0
lea eax, [ebp - 0x1c4]
push eax
push 0
lea ecx, [ebp - 0x1d0]
call fcn.01008912
mov esi, eax
test esi, esi
jl 0x100c02f
push dword [ebp - 0x1c4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x1d4], eax
je 0x100bdfe
lea ecx, [ebp - 0x1c4]
push ecx
push eax
lea ecx, [ebp - 0x1d0]
call fcn.01008912
mov esi, eax
jmp 0x100be03
mov esi, 0x8007000e
test esi, esi
jl 0x100c01a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10026ac
call ebx
test eax, eax
mov dword [ebp - 0x1c4], eax
je 0x100bff7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100269c
push eax
call esi
push 0x100268c
push dword [ebp - 0x1c4]
mov edi, eax
call esi
push 0x100267c
push dword [ebp - 0x1c4]
mov dword [ebp - 0x1dc], eax
call esi
test edi, edi
mov dword [ebp - 0x1e0], eax
je 0x100bfc7
cmp dword [ebp - 0x1dc], 0
je 0x100bfc7
test eax, eax
je 0x100bfc7
call edi
test eax, eax
mov dword [ebp - 0x1d8], eax
je 0x100bfc7
push 0x1002664
call ebx
mov edi, eax
test edi, edi
mov dword [ebp - 0x1e4], edi
je 0x100bf97
push 0x1002654
push edi
call esi
push 0x1002648
push edi
mov ebx, eax
call esi
push 0x100263c
push edi
mov dword [ebp - 8], eax
call esi
test ebx, ebx
mov dword [ebp - 0x1e8], eax
je 0x100bf67
cmp dword [ebp - 8], 0
je 0x100bf67
test eax, eax
je 0x100bf67
and word [ebp - 0x1c0], 0
push 0x63
pop ecx
xor eax, eax
lea edi, [ebp - 0x1be]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c0]
push eax
push 0x101
call dword [ebp - 8]
test eax, eax
jne 0x100bf67
push dword [ebp - 0x1d4]
call ebx
xor esi, esi
cmp eax, esi
je 0x100bf3d
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push 0x24
lea ecx, [ebp - 0x30]
push ecx
push esi
push 8
lea ecx, [ebp - 0xc]
push ecx
push dword [eax]
push dword [ebp - 0x1d8]
call dword [ebp - 0x1e0]
test eax, eax
jne 0x100bf5f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bf4f
call esi
mov esi, eax
jmp 0x100bf5f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [ebp - 0x1e8]
jmp 0x100bf89
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bf79
call esi
mov esi, eax
jmp 0x100bf89
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100bfb9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bfa9
call esi
mov esi, eax
jmp 0x100bfb9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1d8]
call dword [ebp - 0x1dc]
jmp 0x100bfe9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bfd9
call esi
mov esi, eax
jmp 0x100bfe9
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100c019
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100c009
call esi
mov esi, eax
jmp 0x100c019
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
pop ebx
cmp dword [ebp - 0x1d4], 0
je 0x100c02f
push dword [ebp - 0x1d4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x1d0]
call fcn.01008cba
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.010080ca
leave
ret 8