Function at 0x40f700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x422c20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push edi
xor edi, edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], edi
push str.Select__from
mov dword [esp + 0x30], edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x14], ebx
jne 0x40f747
push 0x8007000e
call fcn.004011d0
push esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], edi
mov esi, dword [esp + 0x38]
cmp esi, edi
mov byte [esp + 0x30], 3
jne 0x40f798
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
push ebx
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x30], 0xffffffff
je 0x40f77f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
pop edi
mov eax, 0x80004005
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call ebp
call dword [0x42b1d0]
push edi
push edi
push 0xffffffffffffffff
push esi
mov ebx, eax
push edi
push ebx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [esi - 1]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x40f7f4
mov edx, dword [esp + 0x3c]
push esi
push edi
push 0xffffffffffffffff
push edx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40f7f4
push edi
call ebp
lea ecx, [esp + 0x18]
call fcn.00404630
xor edi, edi
jmp 0x40f7fd
lea ecx, [esp + 0x18]
call fcn.00404630
test edi, edi
mov dword [esp + 0x20], edi
jne 0x40f80f
push 0x8007000e
call fcn.004011d0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edi
push esi
mov dword [esp + 0x24], 0
call sub.OLEAUT32.dll_VarBstrCmp
test eax, eax
jl 0x40f892
push esi
call ebp
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0
push 0x10
push esi
push 0x425fd0
push eax
mov dword [esp + 0x34], esi
call dword [ecx + 0x50]
test eax, eax
mov dword [esp + 0x3c], eax
jge 0x40f898
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x34], 2
je 0x40f86d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
call ebp
push esi
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x34], 0xffffffff
je 0x40f937
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x40f937
push eax
call fcn.004011d0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [esp + 0x3c], eax
jl 0x40f908
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
test eax, eax
jne 0x40f908
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebx
call fcn.0040f370
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f8ec
mov dword [esp + 0x10], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
push 0xffffffffffffffff
push eax
call dword [edx + 0x10]
test eax, eax
je 0x40f8c6
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x34], 2
je 0x40f91b
mov edx, dword [eax]
push eax
call dword [edx + 8]
push edi
call ebp
push esi
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x34], 0xffffffff
je 0x40f937
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
pop ebp
pop esi
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 4