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

Disassembly:
mov eax, 0x806c
call fcn.004ab360
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x14], esi
push edi
mov edi, ecx
cmp esi, 0xc7
ja 0x46d1e2
mov eax, dword [edi + 0x10]
lea edx, [esi*4 + 6]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
add edx, eax
push 0
push 0
push 0x1004
push dword [edi]
add edx, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], edx
call ebx
mov ecx, dword [esp + 0x14]
mov ebp, eax
cmp byte [ecx + 1], 0
je 0x46cf95
cmp byte [esp + 0x8080], 0
jne 0x46d1e2
cmp ebp, 2
jl 0x46d1e2
mov ax, word [esp + 0x8084]
test ax, ax
je 0x46cfb1
cmp ax, 0x41
jmp 0x46cfc9
mov eax, dword [esp + 0x1c]
cmp esi, dword [eax]
jne 0x46cfc5
cmp byte [ecx + 3], 0
jne 0x46cfc5
cmp byte [eax + 4], 0
jmp 0x46cfc9
cmp byte [ecx + 4], 0
lea edx, [esp + 0x76]
sete al
mov dword [esp + 0x4c], edx
mov edx, 0x1fff
mov byte [esp + 0x8076], al
mov dword [esp + 0x50], edx
mov ah, byte [ecx]
cmp ah, 1
jne 0x46d0b6
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], 0
test ebp, ebp
jle 0x46d0a9
nop word [eax + eax]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 1
push eax
push 0
push 0x104b
push dword [edi]
mov dword [esp + 0x50], esi
call ebx
test eax, eax
je 0x46d069
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.00403e00
test al, al
je 0x46d056
push 0x10
push 0
push esi
call fcn.00495c2d
mov esi, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x58], eax
jmp 0x46d071
push esi
call fcn.00495cca
mov esi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0x58], eax
jmp 0x46d071
mov dword [esp + 0x58], 0
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 4
push eax
push 0
push 0x104c
push dword [edi]
mov dword [esp + 0x50], 0
call ebx
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, ebp
jl 0x46d010
mov al, byte [esp + 0x8076]
push 0x46cf10
movzx eax, al
jmp 0x46d1c8
test ah, ah
jne 0x46d114
cmp byte [ecx + 2], 3
jne 0x46d114
cmp dword [0x4dc218], 0
jne 0x46d102
push str.shlwapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x46d0eb
push str.StrCmpLogicalW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4dc218], eax
jmp 0x46d0f0
mov eax, dword [0x4dc218]
test eax, eax
jne 0x46d0fe
mov edx, dword [esp + 0x14]
mov byte [edx + 2], 2
jmp 0x46d116
mov edx, dword [esp + 0x50]
mov eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
dec eax
mov dword [esp + 0x50], eax
jmp 0x46d116
mov edx, ecx
mov ecx, dword [edi]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x40], esi
mov eax, dword [edx]
mov dword [esp + 0x70], eax
mov al, byte [edx + 4]
push 0x46cd90
mov byte [esp + 0x78], al
lea eax, [esp + 0x24]
push eax
push 0x1051
push ecx
mov byte [esp + 0x8087], 1
mov dword [esp + 0x5c], 0
mov dword [esp + 0x48], 1
call ebx
cmp dword [esp + 0x4c], 0
jne 0x46d1d2
mov dword [esp + 0x40], 0
mov dword [esp + 0x38], 4
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], 0
test ebp, ebp
jle 0x46d1a3
lea eax, [esp + 0x38]
push eax
push 0
push 0x104c
push dword [edi]
call ebx
mov eax, dword [esp + 0x3c]
inc dword [esp + 0x58]
inc eax
mov dword [esp + 0x3c], eax
cmp eax, ebp
jl 0x46d182
mov byte [esp + 0x8077], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], esi
push 0x46cd90
push eax
push 0x1030
push dword [edi]
call ebx
mov ecx, dword [esp + 0x1c]
mov dword [ecx], esi
mov al, byte [esp + 0x8076]
mov byte [ecx + 4], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x806c
ret