Function at 0x1008b93
Capabilities:
Link many functions at runtime

Disassembly:
push 0x108
mov eax, 0x100dd15
call fcn.0100bf3d
xor edi, edi
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], edi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1008bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1008bd4
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10093ad
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10013fc
mov esi, dword [ebp + 8]
push esi
call fcn.01003218
test al, al
je 0x1008bfe
push dword [ebp - 0x34]
push esi
call fcn.01003267
lea eax, [ebp - 0x34]
push eax
push edi
push 0x1002430
push esi
call fcn.01003218
test al, al
je 0x1008c1f
push dword [ebp - 0x34]
push esi
call fcn.01003267
mov byte [ebp - 0x20], 1
push edi
push 0x1002420
push esi
call fcn.01003185
cmp al, 1
jne 0x1008dfc
mov dword [ebp - 0x18], edi
mov dword [ebp + 8], edi
push esi
call fcn.010032aa
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1008cf6
push dword [ebp - 0x24]
call fcn.01003992
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1008cf6
push 0x1001300
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1008c88
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1008c83
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x1008cf6
push 0x100240c
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
test edi, edi
jne 0x1008caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1008c79
jmp 0x1008c83
push 0x10022dc
push dword [ebp - 0x1c]
call esi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1008c9e
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x20], eax
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x1008d21
push dword [ebp + 8]
push ebx
call fcn.01006d6b
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
cmp dword [ebp + 8], 0
je 0x1008dc3
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 4
push dword [ebp + 8]
call dword [ebp - 0x18]
jmp 0x10092b4
jle 0x1008d2d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1008cf6
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
xor edi, edi
mov esi, dword [ebp - 0x14]
cmp esi, edi
jl 0x10093b1
xor esi, esi
jmp 0x10093dc
push edi
push 0x10023fc
push esi
call fcn.01003185
cmp al, 1
jne 0x1008fd0
mov dword [ebp + 8], edi
mov dword [ebp - 0x30], edi
push esi
call fcn.010032aa
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1008ed9
push dword [ebp - 0x24]
call fcn.01003992
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1008ed9
push 0x1001300
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1008e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1008e60
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x1008ed9
push 0x10023e8
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
test edi, edi
jne 0x1008e87
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1008e56
jmp 0x1008e60
push 0x10022dc
push dword [ebp - 0x1c]
call esi
mov dword [ebp + 8], eax
test eax, eax
je 0x1008e7b
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 8
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x1008f0b
push dword [ebp - 0x20]
push dword [ebp - 0x30]
push ebx
call fcn.01006b01
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
cmp dword [ebp - 0x30], 0
je 0x1008dc3
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xc
push dword [ebp - 0x30]
call dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
jmp 0x1008dbc
jle 0x1008f17
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1008ed9
push edi
push 0x10023cc
push esi
call fcn.01003185
cmp al, 1
jne 0x10091aa
mov dword [ebp + 8], edi
mov dword [ebp - 0x28], edi
push esi
call fcn.010032aa
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10090bd
push dword [ebp - 0x24]
call fcn.01003992
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10090bd
call fcn.01003804
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10090bd
push 0x1001300
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1009049
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1009044
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x10090bd
push 0x10023b0
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
test edi, edi
jne 0x100906b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x100903a
jmp 0x1009044
push 0x10022dc
push dword [ebp - 0x1c]
call esi
mov dword [ebp + 8], eax
test eax, eax
je 0x100905f
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x10
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x10090e5
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push ebx
call fcn.01007183
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
cmp dword [ebp - 0x28], 0
je 0x1008dc3
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0x14
push dword [ebp - 0x28]
jmp 0x1008efc
jle 0x10090f1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
jmp 0x10090bd
push edi
push 0x10023a4
push esi
call fcn.01003185
push esi
cmp al, 1
jne 0x1009382
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], edi
call fcn.010032aa
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x100928e
push dword [ebp - 0x24]
call fcn.01003992
mov dword [ebp - 0x14], eax
cmp eax, edi
jl 0x100928e
push 0x1001300
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x1009213
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x100920e
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
jmp 0x100928e
push 0x10022f0
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
test edi, edi
jne 0x1009235
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1009204
jmp 0x100920e
push 0x10022dc
push dword [ebp - 0x1c]
call esi
mov dword [ebp + 8], eax
test eax, eax
je 0x1009229
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0x18
lea eax, [ebp - 0x18]
push eax
push 0x1001ec8
push 0
push dword [ebp - 0x24]
call edi
test eax, eax
jne 0x10092bd
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push ebx
call fcn.01006a4a
and dword [ebp - 0x14], 0
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x28]
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
cmp dword [ebp - 0x18], 0
je 0x1008dc3
push 0x100ba41
call dword [sym.imp.msvcrt.dll_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS_____cdecl__set_se_translator_void____cdecl___unsigned_int__struct__EXCEPTION_POINTERS___]
pop ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0x1c
push dword [ebp - 0x18]
call dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
jmp 0x1008db9
jle 0x10092c9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x14], eax
or dword [ebp - 4], 0xffffffff
jmp 0x100928e
call fcn.010032aa
mov esi, eax
cmp esi, edi
jl 0x10093b1
push 0x1001620
push 0x579
call fcn.0100ca2c
pop ecx
pop ecx
push 0x57b
call fcn.0100c967
mov esi, 0x80070057
cmp esi, edi
jge 0x10093ea
cmp esi, 0x80070057
je 0x10093dc
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0100d212
test eax, eax
jl 0x10093dc
push dword [ebp - 0x2c]
push 0x1001330
push 0x579
call fcn.0100ca2c
add esp, 0xc
cmp dword [ebp - 0x1c], edi
je 0x10093ea
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x2c], edi
je 0x10093f8
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.0100bfb6
ret 4