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

Disassembly:
push 0xffffffffffffffff
push 0x4d7d56
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.004afb70
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 0x4054d9
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, 0x71c2c4
mov dword [esp + 0x3c], esi
call fcn.00477e20
xor ecx, ecx
mov dword [esp + 0x2c], eax
test eax, eax
mov dword [esp + 0x20], ecx
jle 0x405944
jmp 0x4055ee
mov esi, dword [esp + 0x34]
push 0
push ecx
push esi
mov ecx, 0x71c2c4
call fcn.00477e80
mov ebx, eax
test ebx, ebx
je 0x40592b
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40592b
mov ecx, ebx
call fcn.004c8b80
test eax, eax
jne 0x40592b
mov esi, dword [ebx + 0x50]
mov eax, dword [0x4ed0fc]
test esi, esi
mov dword [esp + 0x14], eax
je 0x405679
mov ecx, esi
shr ecx, 0x10
jne 0x405649
and esi, 0xffff
lea ecx, [esp + 0x14]
push esi
call fcn.00406b70
jmp 0x405679
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x405679
push edi
lea ecx, [esp + 0x18]
call fcn.00406580
test eax, eax
je 0x405679
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 0x405692
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.plugin.ini
push eax
lea ecx, [esp + 0x1c]
call fcn.00406810
mov edx, dword [0x4ed0fc]
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 0x4056fb
xor ebp, ebp
jmp 0x405704
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x405713
cmp ebp, dword [edi - 4]
jle 0x40572e
lea ecx, [esp + 0x10]
call fcn.00406610
push ebp
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x405753
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 0x40576e
cmp ebp, dword [eax - 4]
jle 0x4057bd
push ebp
lea ecx, [esp + 0x14]
call fcn.00406580
test eax, eax
je 0x4057c1
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 [0x4ed100]
cmp esi, eax
je 0x4057bd
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4057bd
push esi
call fcn.004d4cc1
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 0x40580d
lea ecx, [esp + 0x10]
call fcn.00406610
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push eax
call fcn.00406580
test eax, eax
je 0x40580d
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.004afb70
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 [0x4ed100]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4058ed
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4058ed
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.004d4cc1
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x4ed100]
mov dword [esp + 0x128], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x405927
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x405927
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004d4cc1
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 0x4055ea
mov edi, dword [esp + 0x1c]
add edi, 4
cmp edi, 0x28
mov dword [esp + 0x1c], edi
jl 0x4055c1
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