Function at 0x4128e3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x556f94
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5b3db0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push str.sti.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push 0xa
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], edi
call fcn.0042c48a
xor ebx, ebx
push 0xa
lea ecx, [esp + 0x5c]
mov dword [esp + 0x84], ebx
call fcn.0042c48a
mov byte [esp + 0x80], 1
cmp edi, ebx
je 0x412b84
push str.StiCreateInstance
push edi
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push 0x1000002
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
cmp dword [esp + 0x18], ebx
jne 0x412988
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x412b84
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0042b589
push eax
lea ecx, [esp + 0x30]
call fcn.0040217f
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x28]
push edx
push ebx
mov byte [esp + 0x8c], 2
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jge 0x4129d7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x412b78
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x24], ebx
jbe 0x412aca
mov esi, dword [esp + 0x14]
add esi, 0x114
lea edi, [esi - 0x10c]
cmp word [edi - 2], 1
jne 0x412ab2
push dword [esi]
call fcn.0040e3f7
pop ecx
test al, al
je 0x412ab2
push edi
lea ecx, [esp + 0x24]
call fcn.00401daf
mov byte [esp + 0x80], 3
push 0x5c
push dword [esp + 0x24]
call fcn.0052c71c
pop ecx
pop ecx
cmp eax, ebx
je 0x412a9e
sub eax, dword [esp + 0x20]
sar eax, 1
js 0x412a9e
push dword [esi]
lea ecx, [esp + 0x2c]
call fcn.00401daf
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 4
call fcn.00406fff
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 5
call fcn.0042c6d5
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.004021a7
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.0042c6d5
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.004021a7
mov byte [esp + 0x80], 2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.004021a7
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
add esi, 0x124
cmp eax, dword [esp + 0x24]
jb 0x4129ef
cmp dword [esp + 0x14], ebx
je 0x412ade
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x412aec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x48], ebx
jle 0x412b78
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
call fcn.0042c461
push dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.0042c461
cmp edi, ebx
je 0x412b6a
cmp eax, ebx
je 0x412b6a
mov eax, dword [eax + 8]
push ebx
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x8c], 6
mov eax, dword [edi + 8]
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.00401e83
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [esp + 0x8c], 2
call fcn.004125a8
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x48]
jl 0x412b00
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.004021a7
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], bl
call fcn.0042c5b8
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0042c5b8
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret