Function at 0x40a1b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48f2b8
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4ab9f8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x4ab9f8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
xor esi, esi
mov ebx, edx
mov edi, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
cmp ebx, esi
je 0x40a674
mov eax, dword [ebx]
mov eax, dword [eax + 0x30]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x68]
push edx
push 0xffffffffffffffff
push ebx
call eax
cmp eax, esi
jl 0x40a2b9
mov dword [esp + 0x2c], vtable.tStringBuffer.0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0xa0], 1
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x30]
call fcn.00408b40
add esp, 4
push eax
lea edx, [esp + 0x20]
push str._nName:__s_n
push edx
mov esi, edi
call fcn.00430b80
mov eax, dword [esp + 0x6c]
add esp, 0xc
push eax
lea ecx, [esp + 0x30]
call fcn.00408b40
add esp, 4
push eax
lea ecx, [esp + 0x20]
push str.HelpString:__s_n
push ecx
call fcn.00430b80
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x40]
xor esi, esi
add esp, 0xc
cmp eax, esi
je 0x40a2cf
push eax
call fcn.0046c61b
add esp, 4
jmp 0x40a2cf
lea edx, [esp + 0x1c]
push 0x4936a0
push edx
mov esi, edi
call fcn.00430b80
add esp, 8
xor esi, esi
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push ecx
push ebx
call edx
cmp eax, esi
jne 0x40a654
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ole32.dll_StringFromIID]
cmp eax, esi
jge 0x40a310
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, esi
jl 0x40a38b
mov eax, dword [esp + 0x28]
mov ecx, edi
call fcn.0041e880
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
cmp eax, 4
je 0x40a360
cmp eax, 7
jne 0x40a33b
mov eax, dword [esi]
cmp dword [eax + 8], 0
jne 0x40a33b
lea esi, [eax + 0x18]
jmp 0x40a365
call fcn.004337c0
test eax, eax
jne 0x40a348
xor esi, esi
jmp 0x40a365
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x40a35a
mov eax, edi
call fcn.00433590
mov esi, dword [edi + 8]
sub esi, 0x10
mov esi, dword [esi]
add esi, 0x10
push esi
lea edx, [esp + 0x20]
push str.Interface:___s_n_n
push edx
mov esi, edi
call fcn.00430b80
mov eax, dword [esp + 0x34]
add dword [edi + 8], 0xfffffff0
add esp, 0xc
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
xor eax, eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov word [esp + 0x8d], ax
mov byte [esp + 0x8f], al
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x70], 0
mov dword [esp + 0x40], esi
cmp cx, word [eax + 0x2c]
jae 0x40a5d8
jmp 0x40a3e2
xor esi, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
call edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x18]
push 1
lea edx, [esp + 0x60]
push edx
mov edx, dword [ecx]
push edx
push ebx
call eax
mov dword [esp + 0x2c], vtable.tStringBuffer.0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0xa0], 2
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x70], 0
mov edx, dword [ecx]
push edx
lea eax, [esp + 0x74]
push 0x493f1c
push eax
call fcn.0046aad0
mov ecx, dword [esp + 0x64]
add esp, 0xc
push ecx
lea ecx, [esp + 0x30]
call fcn.00408b40
add esp, 4
push eax
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x24]
push str.ID:0x_s:__s
push eax
mov esi, edi
call fcn.00430b80
mov ecx, dword [esp + 0x24]
add esp, 0x10
test byte [ecx + 0x10], 2
mov byte [esp + 0x13], 0
je 0x40a48e
push 0x493f2c
lea edx, [esp + 0x20]
push edx
jmp 0x40a49d
push 0x493f34
lea eax, [esp + 0x20]
mov byte [esp + 0x17], 1
push eax
call fcn.00430b80
mov eax, dword [esp + 0x1c]
xor ecx, ecx
xor edx, edx
add esp, 8
mov dword [esp + 0x3c], ecx
cmp dx, word [eax + 0x18]
jge 0x40a54c
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 8]
add eax, dword [esp + 0x38]
cmp dword [esp + 0x3c], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
je 0x40a4fc
lea eax, [esp + 0x1c]
push 0x493f38
push eax
mov esi, edi
call fcn.00430b80
add esp, 8
lea edx, [esp + 0x44]
call fcn.0040a6e0
push eax
lea ecx, [esp + 0x20]
push ecx
mov esi, edi
call fcn.00430b80
add esp, 8
test byte [esp + 0x50], 2
je 0x40a52e
lea edx, [esp + 0x1c]
push 0x493f3c
push edx
call fcn.00430b80
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
movsx edx, word [eax + 0x18]
add dword [esp + 0x38], 0x10
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, edx
jl 0x40a4bf
cmp byte [esp + 0x13], 0
je 0x40a567
lea eax, [esp + 0x1c]
push 0x493f40
push eax
mov esi, edi
call fcn.00430b80
add esp, 8
lea ecx, [esp + 0x1c]
push 0x4936a0
push ecx
mov esi, edi
call fcn.00430b80
mov eax, dword [esp + 0x1c]
mov edx, dword [ebx]
mov ecx, dword [edx + 0x50]
add esp, 8
push eax
push ebx
call ecx
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0xa0], 0xffffffff
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], vtable.tStringBuffer.0
test eax, eax
je 0x40a5bf
push eax
call fcn.0046c61b
add esp, 4
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
movzx edx, word [eax + 0x2c]
inc ecx
mov dword [esp + 0x40], ecx
cmp ecx, edx
jl 0x40a3e0
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x4c]
push eax
push ebx
call edx
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [eax + 0x40]
jb 0x40a5f3
mov eax, edi
call fcn.00433590
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov esi, dword [edi + 8]
push edx
push ebx
push edi
call fcn.00442ed0
mov dword [esi], eax
mov dword [esi + 8], 4
add dword [edi + 8], 0x10
mov edi, dword [edi + 0x10]
mov esi, dword [esp + 0x30]
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0xc]
add esp, 0xc
push 0
push esi
push ebx
push eax
call ecx
add esp, 0x10
sub dword [edi + 0x44], esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0046aac1
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x44]
push edx
mov ecx, eax
mov ebx, 3
call fcn.00401c50
push 0x4a7318
lea eax, [esp + 0x48]
push eax
call fcn.0047411e
mov dword [esp + 0x44], vtable.tcomxException.0
mov dword [esp + 0x4c], vtable.tStringBuffer.0
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0xa0], esi
mov ebx, dword [str.Parameter_s__out_of_range]
lea esi, [esp + 0x4c]
mov dword [esp + 0x48], 1
call fcn.0040afe0
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, 0x493568
call fcn.00408f20
add esp, 4
push 0x4a7318
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0xa8], 0xffffffff
call fcn.0047411e
int3