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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5680f3
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x5c9030]
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.00439230
xor ebx, ebx
push 0xa
lea ecx, [esp + 0x5c]
mov dword [esp + 0x84], ebx
call fcn.00439230
mov byte [esp + 0x80], 1
cmp edi, ebx
je 0x41d01c
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 0x41ce20
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41d01c
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.00438329
push eax
lea ecx, [esp + 0x30]
call fcn.00402a28
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 0x41ce6f
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 0x41d010
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x24], ebx
jbe 0x41cf62
mov esi, dword [esp + 0x14]
add esi, 0x114
lea edi, [esi - 0x10c]
cmp word [edi - 2], 1
jne 0x41cf4a
push dword [esi]
call fcn.00418580
pop ecx
test al, al
je 0x41cf4a
push edi
lea ecx, [esp + 0x24]
call fcn.0040266d
mov byte [esp + 0x80], 3
push 0x5c
push dword [esp + 0x24]
call fcn.0053bdb5
pop ecx
pop ecx
cmp eax, ebx
je 0x41cf36
sub eax, dword [esp + 0x20]
sar eax, 1
js 0x41cf36
push dword [esi]
lea ecx, [esp + 0x2c]
call fcn.0040266d
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 4
call fcn.0040f28d
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x84], 5
call fcn.0043947b
mov byte [esp + 0x80], 4
mov ecx, dword [esp + 0x30]
add ecx, 0xfffffff0
call fcn.00402a50
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
call fcn.0043947b
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffff0
call fcn.00402a50
mov byte [esp + 0x80], 2
mov ecx, dword [esp + 0x20]
add ecx, 0xfffffff0
call fcn.00402a50
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
add esi, 0x124
cmp eax, dword [esp + 0x24]
jb 0x41ce87
cmp dword [esp + 0x14], ebx
je 0x41cf76
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 0x41cf84
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 0x41d010
push dword [esp + 0x1c]
lea ecx, [esp + 0x40]
call fcn.005121d2
push dword [esp + 0x1c]
lea ecx, [esp + 0x5c]
mov edi, eax
call fcn.005121d2
cmp edi, ebx
je 0x41d002
cmp eax, ebx
je 0x41d002
mov eax, dword [eax + 8]
push ebx
push ecx
sub eax, 0x10
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.00402741
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.00402741
add eax, 0x10
mov dword [esi], eax
pop ecx
mov byte [esp + 0x8c], 2
call fcn.0041ca40
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x48]
jl 0x41cf98
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.00402a50
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], bl
call fcn.0043935e
or dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x3c]
call fcn.0043935e
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret