Function at 0x1007419d
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 0x100741ec
mov eax, 0x80070057
jmp 0x100744d3
cmp dword [ebx], esi
je 0x100741fa
mov eax, 0x800704df
jmp 0x100744d3
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 0x10074219
call fcn.10074182
mov esi, eax
mov eax, dword [esp + 0x1c]
test esi, esi
js 0x10074243
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 0x100742cf
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 0x10074273
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 0x10074297
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x28]
push ecx
push eax
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call dword [0x100a83d4]
call esi
mov esi, eax
lea eax, [ebx + 4]
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x100742ba
test esi, esi
js 0x10074460
push 0
push dword [eax]
mov ecx, edi
push dword [esp + 0x28]
call dword [0x100a83d4]
call edi
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
js 0x10074464
mov dword [ebx], eax
xor eax, eax
jmp 0x10074464
push 0
push edi
push dword [esp + 0x24]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x100742ec
call fcn.10074182
mov esi, eax
jmp 0x100742ee
xor esi, esi
test esi, esi
js 0x100742f8
mov dword [esp + 0xc], edi
xor edi, edi
test edi, edi
je 0x1007430c
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
js 0x10074243
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.1007460a
mov esi, eax
test esi, esi
js 0x10074247
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
mov edx, 0x100263ac
call fcn.10074505
mov esi, eax
mov dword [esp + 0x20], 1
test esi, esi
js 0x10074247
push 8
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x10074371
call fcn.10074182
mov edi, dword [esp + 0x10]
mov esi, eax
jmp 0x10074379
mov edi, eax
xor esi, esi
mov dword [esp + 0x10], edi
test esi, esi
js 0x10074243
push 0x100263d8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1007439a
call fcn.10074182
mov esi, eax
jmp 0x1007439f
mov dword [ebx + 8], eax
xor esi, esi
test esi, esi
js 0x10074243
push 0x100263f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100743c0
call fcn.10074182
mov esi, eax
jmp 0x100743c5
mov dword [ebx + 0x10], eax
xor esi, esi
test esi, esi
js 0x10074243
push 0x10026410
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100743e6
call fcn.10074182
mov esi, eax
jmp 0x100743eb
mov dword [ebx + 0x14], eax
xor esi, esi
test esi, esi
js 0x10074243
push 0x10026434
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1007440c
call fcn.10074182
mov esi, eax
jmp 0x10074411
mov dword [ebx + 0xc], eax
xor esi, esi
mov eax, dword [ebp + 0x20]
test esi, esi
js 0x10074457
cmp byte [ebp + 0x14], 0
je 0x10074457
test al, 4
je 0x10074457
push 0x10026450
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1007443b
call fcn.10074182
mov esi, eax
jmp 0x10074440
mov dword [ebx + 0x18], eax
xor esi, esi
cmp esi, 0x8007007f
jne 0x10074243
and dword [ebx + 0x18], 0
xor esi, esi
jmp 0x10074243
mov edi, dword [esp + 0xc]
jmp 0x1007424a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007446f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10074487
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 0x1007449f
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 0x100744b9
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 0x100744d1
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