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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x578054
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5d52e0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x5d52e0]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x74], esi
jl 0x543bd5
cmp dword [edi + 0x78], esi
jl 0x543bd5
cmp dword [ebp + 8], esi
je 0x543be4
mov eax, dword [edi + 0x20]
push esi
push esi
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x88], esi
push ebx
lea esi, [esp + 0x18]
call fcn.00403cd0
mov esi, dword [esp + 0x18]
test ebx, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], 0
jle 0x543ad4
push 0x3c
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.00503ac0
mov ecx, dword [edi + 0x20]
mov edx, dword [esp + 0x34]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
push 0x104b
push ecx
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], edx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [esp + 0x48]
cmp edx, esi
jae 0x543a99
mov eax, edx
cmp ebx, eax
ja 0x543a99
sub eax, ebx
sar eax, 2
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x1c]
jne 0x543a8e
lea eax, [esp + 0x14]
call fcn.00403af0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x543aba
mov ecx, dword [ebx + eax*4]
mov dword [esi], ecx
jmp 0x543aba
cmp esi, dword [esp + 0x1c]
jne 0x543ab0
lea eax, [esp + 0x14]
call fcn.00403af0
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test esi, esi
je 0x543aba
mov edx, dword [esp + 0x48]
mov dword [esi], edx
mov eax, dword [esp + 0x28]
inc eax
add esi, 4
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x24]
jl 0x543a25
mov eax, dword [edi + 0x74]
mov ecx, esi
sub ecx, ebx
sar ecx, 2
cmp ecx, eax
ja 0x543aec
push str.invalid_vector_T__subscript
call fcn.0051b845
mov edx, dword [ebx + eax*4]
lea ecx, [ebx + eax*4]
mov dword [esp + 0x10], edx
lea edx, [ecx + 4]
mov eax, esi
sub eax, edx
sar eax, 2
add eax, eax
add eax, eax
push eax
push edx
push ecx
call fcn.004ffc70
mov eax, dword [edi + 0x78]
sub esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp dword [edi + 0x74], eax
jge 0x543b22
dec eax
mov dword [edi + 0x78], eax
mov eax, dword [edi + 0x78]
lea esi, [ebx + eax*4]
lea ecx, [esp + 0x10]
sub esi, ebx
push ecx
lea eax, [esp + 0x18]
sar esi, 2
call fcn.0040a5b0
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
lea eax, [ecx - 4]
lea edx, [ebx + esi*4]
cmp edx, eax
je 0x543b5f
cmp eax, ecx
je 0x543b5f
push ecx
push edx
call fcn.0040a650
mov ecx, dword [esp + 0x20]
add esp, 8
xor esi, esi
cmp dword [esp + 0x24], esi
jle 0x543bbb
sub ecx, ebx
sar ecx, 2
mov dword [esp + 0x10], ecx
push 0x3c
lea edx, [esp + 0x30]
push 0
push edx
call fcn.00503ac0
add esp, 0xc
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], esi
cmp dword [esp + 0x10], esi
jbe 0x543ae2
mov edx, dword [edi + 0x20]
mov eax, dword [ebx + esi*4]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x104c
push edx
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, dword [esp + 0x24]
jl 0x543b70
mov dword [esp + 0x88], 0xffffffff
test ebx, ebx
je 0x543bd3
push ebx
call fcn.0040c6ec
add esp, 4
xor esi, esi
cmp dword [ebp + 8], esi
je 0x543be4
mov eax, dword [edi + 0x78]
push 3
push 3
push eax
jmp 0x543bec
mov ecx, dword [edi + 0x74]
push 3
push 3
push ecx
mov ecx, edi
call fcn.0040eff2
xor eax, eax
lea edx, [esp + 0x68]
push edx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, dword [edi + 0x20]
or ecx, 0xffffffff
push 0x10a6
push eax
mov dword [edi + 0x78], ecx
mov dword [esp + 0x78], 0x10
mov dword [esp + 0x7c], 1
mov dword [esp + 0x80], ecx
call esi
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1002
push ecx
call esi
push eax
call fcn.0040f90b
test eax, eax
je 0x543c7a
cmp dword [eax + 4], 0
je 0x543c7a
mov edi, dword [edi + 0x20]
push edi
call fcn.0040da38
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00409fa0
call fcn.0040da38
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00409d60
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004ff57c
mov esp, ebp
pop ebp
ret 4