Function at 0x413040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426f40
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 0x413087
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 0x4130d8
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 0x4130bf
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 [0x42f1d0]
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 0x413134
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 0x413134
push edi
call ebp
lea ecx, [esp + 0x18]
call fcn.00407e90
xor edi, edi
jmp 0x41313d
lea ecx, [esp + 0x18]
call fcn.00407e90
test edi, edi
mov dword [esp + 0x20], edi
jne 0x41314f
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 0x4131d2
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 0x42a460
push eax
mov dword [esp + 0x34], esi
call dword [ecx + 0x50]
test eax, eax
mov dword [esp + 0x3c], eax
jge 0x4131d8
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x34], 2
je 0x4131ad
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 0x413277
mov edx, dword [eax]
push eax
call dword [edx + 8]
jmp 0x413277
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 0x413248
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 0x413248
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00412cb0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41322c
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 0x413206
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x34], 2
je 0x41325b
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 0x413277
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