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

Disassembly:
push 0xffffffffffffffff
push 0x4d67e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
push edi
mov eax, dword [ebp + 0x6d8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push ebx
push 0x1037
push eax
mov dword [esp + 0x28], ebp
mov dword [ebp + 0x73c], ebx
mov dword [esp + 0x34], 0x54
mov dword [esp + 0x38], 0xc44
mov dword [esp + 0x3c], 0xc8
mov dword [esp + 0x40], 0x5f
call edi
mov ecx, dword [ebp + 0x6d8]
or al, 0x24
push eax
push ebx
push 0x1036
push ecx
call edi
mov dword [esp + 0x88], 7
mov dword [esp + 0x8c], ebx
xor esi, esi
mov eax, dword [esp + esi*4 + 0x24]
mov edx, dword [esp + esi*4 + 0x2c]
push eax
mov dword [esp + 0x94], edx
call fcn.004ae820
mov edx, dword [ebp + 0x6d8]
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x94], eax
push ecx
push esi
push 0x1061
push edx
call edi
inc esi
cmp esi, 2
jl 0x4064d9
xor edi, edi
mov dword [esp + 0x38], 2
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], 8
mov dword [esp + 0x48], 4
mov dword [esp + 0x4c], 0x10
mov dword [esp + 0x50], 0x20
mov dword [esp + 0x54], 0x40
mov dword [esp + 0x58], 0x80
mov dword [esp + 0x5c], 0x100
mov dword [esp + 0x60], 0xc48
mov dword [esp + 0x64], 0xc47
mov dword [esp + 0x68], 0xc4a
mov dword [esp + 0x6c], 0xc4b
mov dword [esp + 0x70], 0xc49
mov dword [esp + 0x74], 0xc4e
mov dword [esp + 0x78], 0xc4f
mov dword [esp + 0x7c], 0xc50
mov dword [esp + 0x80], 0xc51
mov dword [esp + 0x84], 0xa053
mov dword [esp + 0x1c], edi
mov esi, dword [esp + edi + 0x38]
push 0
push esi
mov ecx, 0x6b8dd4
mov dword [esp + 0x3c], esi
call fcn.00476350
xor ecx, ecx
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x20], ecx
jle 0x406944
jmp 0x4065ee
mov esi, dword [esp + 0x34]
push 0
push ecx
push esi
mov ecx, 0x6b8dd4
call fcn.004763b0
mov ebx, eax
test ebx, ebx
je 0x40692b
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40692b
mov ecx, ebx
call fcn.00470980
test eax, eax
jne 0x40692b
mov esi, dword [ebx + 0x50]
mov eax, dword [0x4eb4c0]
test esi, esi
mov dword [esp + 0x14], eax
je 0x406679
mov ecx, esi
shr ecx, 0x10
jne 0x406649
and esi, 0xffff
lea ecx, [esp + 0x14]
push esi
call fcn.00407b70
jmp 0x406679
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x406679
push edi
lea ecx, [esp + 0x18]
call fcn.00407580
test eax, eax
je 0x406679
lea ecx, [edi + edi]
mov edi, dword [esp + 0x14]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, str.plugin.ini
xor eax, eax
test ecx, ecx
mov dword [esp + 0x128], eax
je 0x406692
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.plugin.ini
push eax
lea ecx, [esp + 0x1c]
call fcn.00407810
mov edx, dword [0x4eb4c0]
mov dword [esp + 0x10], edx
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0xa8]
push eax
rep stosd dword es:[edi], eax
push eax
mov eax, dword [ebp + 0x6d8]
push 0x1004
push eax
mov byte [esp + 0x138], 1
mov dword [esp + 0xb8], 5
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0xac], eax
mov dword [esp + 0xc8], ebx
mov esi, dword [ebx + 0x44]
test esi, esi
jne 0x4066fb
xor ebp, ebp
jmp 0x406704
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x406713
cmp ebp, dword [edi - 4]
jle 0x40672e
lea ecx, [esp + 0x10]
call fcn.00407610
push ebp
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x406753
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], ebp
mov edx, dword [esp + 0x10]
mov word [eax + edx], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
mov ebp, dword [eax - 8]
lea esi, [eax - 0xc]
cmp ecx, 1
mov dword [esp + 0x24], esi
jg 0x40676e
cmp ebp, dword [eax - 4]
jle 0x4067bd
push ebp
lea ecx, [esp + 0x14]
call fcn.00407580
test eax, eax
je 0x4067c1
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
add esi, 0xc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov dword [ecx - 8], ebp
mov eax, dword [0x4eb24c]
cmp esi, eax
je 0x4067bd
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4067bd
push esi
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xbc], eax
mov eax, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp eax, 1
jle 0x40680d
lea ecx, [esp + 0x10]
call fcn.00407610
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00407580
test eax, eax
je 0x40680d
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x10]
add esi, 0xc
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], 0
mov ecx, dword [edi + 0x6d8]
lea eax, [esp + 0xa8]
push eax
push 0
push 0x104d
push ecx
call ebp
mov edx, dword [esp + 0x1c]
mov esi, eax
mov dword [esp + 0xd8], 1
mov eax, dword [esp + edx + 0x60]
push eax
call fcn.004ae820
mov edx, dword [edi + 0x6d8]
add esp, 4
lea ecx, [esp + 0xd0]
mov dword [esp + 0xe4], eax
push ecx
push esi
push 0x1074
push edx
call ebp
mov eax, dword [ebx + 0x10]
xor ecx, ecx
test eax, eax
mov eax, dword [edi + 0x6d8]
lea edx, [esp + 0xf8]
setne cl
inc ecx
push edx
push esi
push 0x102b
shl ecx, 0xc
push eax
mov dword [esp + 0x118], 0xf000
mov dword [esp + 0x114], ecx
call ebp
mov eax, dword [esp + 0x10]
mov edx, dword [0x4eb24c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4068ed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4068ed
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004d3765
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4eb24c]
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x406927
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406927
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d3765
add esp, 4
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x4065ea
mov edi, dword [esp + 0x1c]
add edi, 4
cmp edi, 0x28
mov dword [esp + 0x1c], edi
jl 0x4065c1
mov ecx, dword [esp + 0x120]
pop edi
mov dword [ebp + 0x73c], 1
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret