Function at 0x100becb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x101a094]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], eax
call fcn.01008904
mov ecx, esi
call fcn.01009e41
cmp eax, 4
lea eax, [ebp - 0x1d0]
mov ecx, esi
push eax
jne 0x100bf8b
push 0
call fcn.0100b621
mov esi, eax
test esi, esi
jl 0x100c21d
lea ecx, [ebp - 0x1d0]
call fcn.010089be
cmp eax, 3
jl 0x100bf84
mov eax, dword [ebp - 0x1d0]
cmp word [eax], 0x5c
jne 0x100bf84
cmp word [eax + 2], 0x5c
jne 0x100bf84
push 2
pop edi
lea ecx, [ebp - 0x1d0]
call fcn.010089be
cmp eax, edi
jl 0x100bf92
mov eax, dword [ebp - 0x1d0]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x1d0]
je 0x100bf6c
inc edi
call fcn.010089be
cmp edi, eax
jle 0x100bf4d
jmp 0x100bf92
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x1d0]
push 0xffffffffffffffff
add eax, 4
push eax
call fcn.01008eee
jmp 0x100bf90
mov esi, 0x80070057
jmp 0x100bf92
call fcn.0100957d
mov esi, eax
test esi, esi
jl 0x100c21d
and dword [ebp - 0x1c4], 0
lea eax, [ebp - 0x1c4]
push eax
push 0
lea ecx, [ebp - 0x1d0]
call fcn.01008af2
mov esi, eax
test esi, esi
jl 0x100c21d
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 0x100bfec
lea ecx, [ebp - 0x1c4]
push ecx
push eax
lea ecx, [ebp - 0x1d0]
call fcn.01008af2
mov esi, eax
jmp 0x100bff1
mov esi, 0x8007000e
test esi, esi
jl 0x100c208
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x10026b4
call ebx
test eax, eax
mov dword [ebp - 0x1c4], eax
je 0x100c1e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10026a4
push eax
call esi
push 0x1002694
push dword [ebp - 0x1c4]
mov edi, eax
call esi
push 0x1002684
push dword [ebp - 0x1c4]
mov dword [ebp - 0x1dc], eax
call esi
test edi, edi
mov dword [ebp - 0x1e0], eax
je 0x100c1b5
cmp dword [ebp - 0x1dc], 0
je 0x100c1b5
test eax, eax
je 0x100c1b5
call edi
test eax, eax
mov dword [ebp - 0x1d8], eax
je 0x100c1b5
push 0x100266c
call ebx
mov edi, eax
test edi, edi
mov dword [ebp - 0x1e4], edi
je 0x100c185
push 0x100265c
push edi
call esi
push 0x1002650
push edi
mov ebx, eax
call esi
push 0x1002644
push edi
mov dword [ebp - 8], eax
call esi
test ebx, ebx
mov dword [ebp - 0x1e8], eax
je 0x100c155
cmp dword [ebp - 8], 0
je 0x100c155
test eax, eax
je 0x100c155
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 0x100c155
push dword [ebp - 0x1d4]
call ebx
xor esi, esi
cmp eax, esi
je 0x100c12b
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 0x100c14d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100c13d
call esi
mov esi, eax
jmp 0x100c14d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [ebp - 0x1e8]
jmp 0x100c177
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100c167
call esi
mov esi, eax
jmp 0x100c177
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100c1a7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100c197
call esi
mov esi, eax
jmp 0x100c1a7
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1d8]
call dword [ebp - 0x1dc]
jmp 0x100c1d7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100c1c7
call esi
mov esi, eax
jmp 0x100c1d7
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100c207
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100c1f7
call esi
mov esi, eax
jmp 0x100c207
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
pop ebx
cmp dword [ebp - 0x1d4], 0
je 0x100c21d
push dword [ebp - 0x1d4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x1d0]
call fcn.01008e9a
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0100829a
leave
ret 8