Function at 0x1009342
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x10140d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
push 0x5c
lea eax, [ebp - 0xb4]
push ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 1
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 3
mov dword [ebp - 0xb8], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1002f6c
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x100960c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002f50
push eax
call esi
push 0x1002f3c
push dword [ebp - 0x20]
mov edi, eax
call esi
push 0x1002f24
push dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
call esi
push 0x1002f1c
push dword [ebp - 0x20]
mov dword [ebp - 0x50], eax
call esi
push 0x1002f04
push dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
call esi
push 0x1002ef0
push dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
call esi
push 0x1002edc
push dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x3c], ebx
je 0x100945d
cmp eax, ebx
je 0x100945d
cmp edi, ebx
je 0x100945d
cmp dword [ebp - 0x54], ebx
je 0x100945d
cmp dword [ebp - 0x50], ebx
je 0x100945d
cmp dword [ebp - 0x24], ebx
je 0x100945d
cmp dword [ebp - 0x48], ebx
jne 0x1009467
mov esi, 0x8007007f
jmp 0x100962f
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
lea eax, [ebp - 0x14]
push eax
call edi
test eax, eax
je 0x10095f2
cmp dword [ebp - 0x2c], ebx
je 0x10095f2
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call edi
test eax, eax
je 0x10095f2
cmp dword [ebp - 0x30], ebx
je 0x10095f2
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x1c]
push eax
call edi
test eax, eax
je 0x10095f2
cmp dword [ebp - 0x44], ebx
je 0x10095f2
lea eax, [ebp - 0x28]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x3c]
mov edi, eax
cmp edi, ebx
je 0x10095ea
cmp dword [ebp - 0x28], ebx
je 0x100954f
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
push esi
push dword [ebp - 0x28]
call dword [ebp - 0x58]
mov edi, eax
cmp dword [ebp - 0x40], ebx
je 0x1009543
push dword [ebp - 0x40]
call sub.cmutil.dll_CmMalloc
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x1009543
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x3c], ebx
push dword [ebp - 0x34]
push esi
push dword [ebp - 0x28]
call dword [ebp - 0x58]
mov edi, eax
cmp edi, ebx
je 0x1009543
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x28], ebx
cmp edi, ebx
je 0x10095ea
cmp dword [ebp - 0x4c], ebx
je 0x10095ea
push dword [ebp - 0x2c]
lea eax, [ebp - 0xac]
push eax
call dword [ebp - 0x48]
push dword [ebp - 0x30]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xb8], 0x80000000
call dword [ebp - 0x48]
push dword [ebp - 0x4c]
lea eax, [ebp - 0x6c]
mov edi, 0x1fffff
push eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x98], edi
call dword [ebp - 0x48]
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0xb8]
push eax
push 3
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], edi
call dword [ebp - 0x54]
cmp eax, ebx
jne 0x10095e6
push ebx
push dword [ebp - 0x38]
push ebx
push ebx
push 0x80000004
push 4
push 0x1002e50
call dword [ebp - 0x50]
cmp eax, ebx
jle 0x1009620
jmp 0x1009616
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10095e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jg 0x1009600
mov esi, eax
jmp 0x100962f
and eax, 0xffff
or eax, 0x80070000
jmp 0x10095fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10095fc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp dword [ebp - 0x34], ebx
je 0x100962f
push dword [ebp - 0x34]
call sub.cmutil.dll_CmFree
cmp dword [ebp - 0x2c], ebx
je 0x100963f
cmp dword [ebp - 0x24], ebx
je 0x100963f
push dword [ebp - 0x2c]
call dword [ebp - 0x24]
cmp dword [ebp - 0x30], ebx
je 0x100964f
cmp dword [ebp - 0x24], ebx
je 0x100964f
push dword [ebp - 0x30]
call dword [ebp - 0x24]
cmp dword [ebp - 0x44], ebx
je 0x100965f
cmp dword [ebp - 0x24], ebx
je 0x100965f
push dword [ebp - 0x44]
call dword [ebp - 0x24]
cmp dword [ebp - 0x38], ebx
je 0x100966d
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20], ebx
je 0x100967b
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e410
leave
ret