Function at 0x107afc9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1e8
mov eax, dword [0x10cf230]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], eax
call fcn.010424ee
mov ecx, esi
call fcn.0107d601
cmp eax, 4
lea eax, [ebp - 0x1d0]
mov ecx, esi
push eax
jne 0x107b089
push 0
call fcn.0107f08b
mov esi, eax
test esi, esi
jl 0x107b31b
lea ecx, [ebp - 0x1d0]
call fcn.010425a8
cmp eax, 3
jl 0x107b082
mov eax, dword [ebp - 0x1d0]
cmp word [eax], 0x5c
jne 0x107b082
cmp word [eax + 2], 0x5c
jne 0x107b082
push 2
pop edi
lea ecx, [ebp - 0x1d0]
call fcn.010425a8
cmp eax, edi
jl 0x107b090
mov eax, dword [ebp - 0x1d0]
cmp word [eax + edi*2], 0x5c
lea ecx, [ebp - 0x1d0]
je 0x107b06a
inc edi
call fcn.010425a8
cmp edi, eax
jle 0x107b04b
jmp 0x107b090
and word [eax + edi*2], 0
mov eax, dword [ebp - 0x1d0]
push 0xffffffffffffffff
add eax, 4
push eax
call fcn.01042ec9
jmp 0x107b08e
mov esi, 0x80070057
jmp 0x107b090
call fcn.0107cd96
mov esi, eax
test esi, esi
jl 0x107b31b
and dword [ebp - 0x1c4], 0
lea eax, [ebp - 0x1c4]
push eax
push 0
lea ecx, [ebp - 0x1d0]
call fcn.010429ee
mov esi, eax
test esi, esi
jl 0x107b31b
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 0x107b0ea
lea ecx, [ebp - 0x1c4]
push ecx
push eax
lea ecx, [ebp - 0x1d0]
call fcn.010429ee
mov esi, eax
jmp 0x107b0ef
mov esi, 0x8007000e
test esi, esi
jl 0x107b306
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x101c190
call ebx
test eax, eax
mov dword [ebp - 0x1c4], eax
je 0x107b2e3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101c180
push eax
call esi
push 0x101c170
push dword [ebp - 0x1c4]
mov edi, eax
call esi
push 0x101c160
push dword [ebp - 0x1c4]
mov dword [ebp - 0x1dc], eax
call esi
test edi, edi
mov dword [ebp - 0x1e0], eax
je 0x107b2b3
cmp dword [ebp - 0x1dc], 0
je 0x107b2b3
test eax, eax
je 0x107b2b3
call edi
test eax, eax
mov dword [ebp - 0x1d8], eax
je 0x107b2b3
push 0x101c148
call ebx
mov edi, eax
test edi, edi
mov dword [ebp - 0x1e4], edi
je 0x107b283
push 0x101c138
push edi
call esi
push 0x101c12c
push edi
mov ebx, eax
call esi
push 0x101c120
push edi
mov dword [ebp - 8], eax
call esi
test ebx, ebx
mov dword [ebp - 0x1e8], eax
je 0x107b253
cmp dword [ebp - 8], 0
je 0x107b253
test eax, eax
je 0x107b253
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 0x107b253
push dword [ebp - 0x1d4]
call ebx
xor esi, esi
cmp eax, esi
je 0x107b229
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 0x107b24b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b23b
call esi
mov esi, eax
jmp 0x107b24b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [ebp - 0x1e8]
jmp 0x107b275
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b265
call esi
mov esi, eax
jmp 0x107b275
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1e4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x107b2a5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b295
call esi
mov esi, eax
jmp 0x107b2a5
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1d8]
call dword [ebp - 0x1dc]
jmp 0x107b2d5
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b2c5
call esi
mov esi, eax
jmp 0x107b2d5
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x107b305
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x107b2f5
call esi
mov esi, eax
jmp 0x107b305
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
pop ebx
cmp dword [ebp - 0x1d4], 0
je 0x107b31b
push dword [ebp - 0x1d4]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp - 0x1d0]
call fcn.01042e75
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01041c5f
leave
ret 8