Function at 0x100761da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
push edi
xor eax, eax
lea edi, [esp + 0x38]
mov ebx, ecx
xor esi, esi
push 0xa
pop ecx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x2c]
mov dword [esp + 0x10], esi
stosd dword es:[edi], eax
mov dword [esp + 0xc], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
stosd dword es:[edi], eax
cmp dword [ebp + 8], esi
jne 0x10076229
mov eax, 0x80070057
jmp 0x10076510
cmp dword [ebx], esi
je 0x10076237
mov eax, 0x800704df
jmp 0x10076510
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10076256
call fcn.100761bf
mov esi, eax
mov eax, dword [esp + 0x1c]
test esi, esi
js 0x10076280
lea eax, [eax*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x1007630c
mov esi, 0x8007000e
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0x20]
or dword [esp + 0x3c], eax
mov dword [esp + 0x38], 0x28
test al, 4
je 0x100762b0
and dword [esp + 0x30], 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], edi
mov dword [esp + 0x50], eax
lea eax, [ebx + 4]
test esi, esi
js 0x100762d4
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call dword [0x100aa3f8]
call esi
mov esi, eax
lea eax, [ebx + 4]
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x100762f7
test esi, esi
js 0x1007649d
push 0
push dword [eax]
mov ecx, edi
push dword [esp + 0x28]
call dword [0x100aa3f8]
call edi
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
js 0x100764a1
mov dword [ebx], eax
xor eax, eax
jmp 0x100764a1
push 0
push edi
push dword [esp + 0x24]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x10076329
call fcn.100761bf
mov esi, eax
jmp 0x1007632b
xor esi, esi
test esi, esi
js 0x10076335
mov dword [esp + 0xc], edi
xor edi, edi
test edi, edi
je 0x10076349
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
js 0x10076280
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.10076647
mov esi, eax
test esi, esi
js 0x10076284
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov edx, 0x10026ee4
call fcn.10076542
mov esi, eax
mov dword [esp + 0x20], 1
test esi, esi
js 0x10076284
push 8
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x100763ae
call fcn.100761bf
mov edi, dword [esp + 0x10]
mov esi, eax
jmp 0x100763b6
mov edi, eax
xor esi, esi
mov dword [esp + 0x10], edi
test esi, esi
js 0x10076280
push 0x10026f10
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100763d7
call fcn.100761bf
mov esi, eax
jmp 0x100763dc
mov dword [ebx + 8], eax
xor esi, esi
test esi, esi
js 0x10076280
push 0x10026f28
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100763fd
call fcn.100761bf
mov esi, eax
jmp 0x10076402
mov dword [ebx + 0x10], eax
xor esi, esi
test esi, esi
js 0x10076280
push 0x10026f48
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10076423
call fcn.100761bf
mov esi, eax
jmp 0x10076428
mov dword [ebx + 0x14], eax
xor esi, esi
test esi, esi
js 0x10076280
push 0x10026f6c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10076449
call fcn.100761bf
mov esi, eax
jmp 0x1007644e
mov dword [ebx + 0xc], eax
xor esi, esi
mov eax, dword [ebp + 0x20]
test esi, esi
js 0x10076494
cmp byte [ebp + 0x14], 0
je 0x10076494
test al, 4
je 0x10076494
push 0x10026f88
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10076478
call fcn.100761bf
mov esi, eax
jmp 0x1007647d
mov dword [ebx + 0x18], eax
xor esi, esi
cmp esi, 0x8007007f
jne 0x10076280
and dword [ebx + 0x18], 0
xor esi, esi
jmp 0x10076280
mov edi, dword [esp + 0xc]
jmp 0x10076287
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100764ac
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100764c4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100764dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x24], 0
je 0x100764f6
push dword [esp + 0x24]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1007650e
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c